Initial working version. Gesture events are working.