Now working with accelerometer