Updating patterns for patterns and headers