Implemented methods in server.