Added Shake detection