Basic server implementation.