Added offline processing after capturing gestures.