Finish majority of the server side logic