Created debug method for service. (Not fully implemented as yet.)