Add sequenceWhile