Modified increment_list() to work with yield (: