Utility method for creating the client