Special processing for id's of 0. Added depth to relationship processing.