Overhauled a bit of the script already:
Added two more qualifying criteria.
Made some changes to the debug panel to help watch your criteria journey through the logic.
Made some changes to how the average is measured.
Found a couple bugs in my own travel through various criteria testing.
As I usually do. I release that first version a bit too early and there's always some optimization that happens immediately following publication as I also begin using it.