Added mode option to regenerate methods, allowing the ability to 'exclude' some properties from regeneration.