Test service added.
Separated thread for running scan and email into it's own worker thread