Work around output buffering