Work on accelerometer input