Added magnetometer.