Scan period is now configurable and works in background.