High level implementation of server.