Added logic to read in gyro/accel vals.