Added hooks for touch events.