Adding a get_id_from_identity method