Formulas replaced with Math. Most functions moved to owner, only weightedAverage left.