Created new functions for the Server and Client classes