Adding flush() to server script