Fixed accelemetor api functionality