Partition task. Iteration method.