Update pattern file