Working server implementation.