Used CoreMotion Framework instead of UIAcceleration