Added magnetometer library.