Working on a command thread for the service.