Add $base->getObjectREcursive(); and other changes.