Made equation = average and everything works now.