Cumulative Sum equation fixes