Made Input.__iter__() more efficient.