Basic accelerometer support.