Added Generator class.