Made possible to use multiple patterns