Got accelerometer working