Update pattern.