Adds magnetometer.