Added an optional argument to ComputeTransient for memory efficiency