Fine Tuned the gesture detection