Added accelerometer support for jumping