Changes to apply the patterns