Updated gyroscope functionality