Prep work to handle input chains of matched patterns and checking for