Implement iterate() and limit()