Adds client factory to make client creation easier