Added cumsum for Seq.