$pt.toCondition('Product ID')
.removeLongerThan(100d)
.setProperty('Avg A', $a, average())
.setProperty('Avg B', $b, average())
.setProperty('Avg C', $c, average())
Sorry, should have provided that before. If I add anything below this code it gives me the EOF error.