Change enum type values, and also add file regex functionality.