Working version of the echo server.