Pulled out a client utility for functions that will be used everywhere