Removed unnecessary attributes from the generator object.