Finished server implementation. for now.