Changed sequence logic.

Remembered latest changes before lesson.