Added interface for output buffering.