Make some generators lazy