Added connect with config for client