Tweaked code to work when ODA godmode is off and to cache the "size" value of model lists to avoid a performance cliff in XPiNC