Change add-all-parents to return a single parent