Hi, I'm loving this script but I can't seem to get it to work with missing values: values:Array[32] 0:NaN 1:NaN 2:0 3:NaN When I replace NaN with any valid int it works just fine. values:Array[32] 0:-2 1:-2 2:0 3:-2