Added functionality for mobile devices.