Added pattern type switcher