Refactoring for mobile.