Use a buffered writer so writes to stdout don't slow down the client.