Move "if"s out of the loop and rewrite the loop to use parse_find_node() to search...