Finished server code and added evaluation mechanism.