Implemented server basics.