Added an original order of pattern writing.