Created template for FOR loop in executor