Added pattern classes.