This code is a mess because compiling in NetLogo is currently a mess. Most of these problems should really be solved on the NetLogo side. I went over this with Seth. Hopefully, it naturally falls out of the work he's doing. If not, I'll add an issue when the time comes.