Command server implementation.