Seq

including some fixes from the code Matthieu.