Detecting more complex gestures