Added req_id_from_name function