Implementing basic server.