Slightly changed the client_handler class to work with Mobile.