Reading accelerometer values as well.