Added get_url method
Merged adding of get_url with other changes