Implemented support for mobile interfaces. Closes #677.