Adding id_from_uri method.