Implemented some server functionality.