Add frame validation; Export parse_uri interface