Separated server code from client code