Add support for generating multiple instances and attribute overrides