Gesture detection implemented.