Improve magnetometer