Added accelerometer functionality for mobile