Added a generator struct.