Work on magnetometer library