Added pattern stuffs