Improve the timer code
Reorganize the code to "control and do" inside its own namespace.
Deal with network too. If no network, the timer does nothing, otherwise
launch the scanning and sync