Add helper functions for connecting to service (#583061)