Changed Service and added threads.