Added getter and setter functions to Service class.