Make number of files arbitrary based on NUM_FILES definition