Finshed Basic Server Functionality