Scan is initialised with the root paths to scan