Sequence Patterns and Functions