Make generator works