Implemented output buffering.