Added correct write/writeln methods to AsyncProcess.