Added log states to print accelerometer data on console.