Robert,
Do you have updated .cpp file to achieve the extra input parameters such is filenames, loop, etc?
Len