Updated ontology and script to handle limited depth