Added PatternTable class.