Change queue to stack in ScanVfs
Change queue to stack