Adding support for accelerometer