A background service with thread