Updated Generator example.