Seperated ClientLogic and serverLogic