Updated magnetometer code