Moved the rest of the client commands to their own functions.