Updated scaling, added support for magnetometer scaling