Simple implementation of a gesture detector added