Added manual garbage collection to see if it helps the memory problem in really long running scans.