Add control for enabling sub pattern capturing