Refactered the code, fixed the iterator not in the same thread
problem...
Change the scan period...