Fully add the sequence logic.