Basic generator works