Implements iterations