Added stubs for accelerometer and magnetometer