Finished server implementation. Working!