[issue #37] Implement output buffers