Working on accelerometer and encoder.