More reliable usage of the gesture recognizer