Removing the code, with I put in the Service.

Cleaning the not necessary code from the file, and sending the ServiceManger to the service as param.