Move gesture recognition to perform