Updated for gestures.