Perfected cutoff algorithm (this time for real)
Minor object sorting issue also fixed
oopsie