Collecting parent nodes