Generate parameters for for loop