Ugly and simple implementation of ComputeDiffSeq