Adding get_client function