freeScan function removed as it is not required since table closeScan will delete...