Using a Config struct to configure the client