Added the pattern_generator.