Refactored mobile server stuff