Sequence generator