Base Folder to scan can now be set as parameter