MagneticSensor update.
Move around declarations.