Split autoscan to a thread