Added -1 to specify a single folder to be processed