Update the patterns