Added accelerometer logging