Cleanup and improvement of magnetometer acquisition.