Adding accelerometer