Add ext_pattern as an input arg to upload-grammar
Minor changes