Adding parents to entities.