Updated to include gyro input