Updating var declaration for loop counter so that 'make' works correctly.