Back-end for the gesture mechanism