APR-11 Initial implementation of Magnetometer API.