Implementation logic for the iteration system.