Bugfixes, and flush the output stream more often.