Refactor code to allow service to have multiple pingers