Added magnetometer