Generators. Some utilities