Added init of Magnetometer