Loans | Loans Year-end loans, including leases net of unearned discounts, consisted of the following: 2019 2018 Commercial and industrial $ 5,187,466 $ 5,111,957 Energy: Production 1,348,900 1,309,314 Service 192,996 168,775 Other 110,986 124,509 Total energy 1,652,882 1,602,598 Commercial real estate: Commercial mortgages 4,594,113 4,121,966 Construction 1,312,659 1,267,717 Land 289,467 306,755 Total commercial real estate 6,196,239 5,696,438 Consumer real estate: Home equity loans 375,596 353,924 Home equity lines of credit 354,671 337,168 Other 464,146 427,898 Total consumer real estate 1,194,413 1,118,990 Total real estate 7,390,652 6,815,428 Consumer and other 519,332 569,750 Total loans $ 14,750,332 $ 14,099,733 Concentrations of Credit. Most of our lending activity occurs within the State of Texas, including the four largest metropolitan areas of Austin, Dallas/Ft. Worth, Houston and San Antonio, as well as other markets. The majority of our loan portfolio consists of commercial and industrial and commercial real estate loans. As of December 31, 2019 and 2018 , there were no concentrations of loans related to any single industry in excess of 10% of total loans other than energy loans, which totaled 11.2% and 11.4% of total loans at such dates, respectively. Unfunded commitments to extend credit and standby letters of credit issued to customers in the energy industry totaled $1.2 billion and $75.5 million , respectively, as of December 31, 2019 . Foreign Loans. We have U.S. dollar denominated loans and commitments to borrowers in Mexico. The outstanding balance of these loans and the unfunded amounts available under these commitments were not significant at December 31, 2019 or 2018 . Overdrafts . Deposit account overdrafts reported as loans totaled $9.0 million and $8.5 million at December 31, 2019 and 2018 . Related Party Loans . In the ordinary course of business, we have granted loans to certain directors, executive officers and their affiliates (collectively referred to as “related parties”). Activity in related party loans during 2019 is presented in the following table. Other changes were primarily related to changes in related-party status. Balance outstanding at December 31, 2018 $ 256,056 Principal additions 304,407 Principal reductions (257,687 ) Other changes (4,248 ) Balance outstanding at December 31, 2019 $ 298,528 Non-Accrual and Past Due Loans. Loans are considered past due if the required principal and interest payments have not been received as of the date such payments were due. Loans are placed on non-accrual status when, in management’s opinion, the borrower may be unable to meet payment obligations as they become due, as well as when required by regulatory provisions. In determining whether or not a borrower may be unable to meet payment obligations for each class of loans, we consider the borrower’s debt service capacity through the analysis of current financial information, if available, and/or current information with regards to our collateral position. Regulatory provisions would typically require the placement of a loan on non-accrual status if (i) principal or interest has been in default for a period of 90 days or more unless the loan is both well secured and in the process of collection or (ii) full payment of principal and interest is not expected. Loans may be placed on non-accrual status regardless of whether or not such loans are considered past due. When interest accrual is discontinued, all unpaid accrued interest is reversed. Interest income on non-accrual loans is recognized only to the extent that cash payments are received in excess of principal due. A loan may be returned to accrual status when all the principal and interest amounts contractually due are brought current and future principal and interest amounts contractually due are reasonably assured, which is typically evidenced by a sustained period (at least six months) of repayment performance by the borrower. Year-end non-accrual loans, segregated by class of loans, were as follows: 2019 2018 Commercial and industrial $ 26,038 $ 9,239 Energy 65,761 46,932 Commercial real estate: Buildings, land and other 8,912 15,268 Construction 665 — Consumer real estate 922 892 Consumer and other 5 1,408 Total $ 102,303 $ 73,739 Had non-accrual loans performed in accordance with their original contract terms, we would have recognized additional interest income, net of tax, of approximately $3.9 million in 2019 , $5.2 million in 2018 and $3.7 million in 2017 . An age analysis of past due loans (including both accruing and non-accruing loans), segregated by class of loans, as of December 31, 2019 was as follows: Loans 30-89 Days Past Due Loans 90 or More Days Past Due Total Past Due Loans Current Loans Total Loans Accruing Loans 90 or More Days Past Due Commercial and industrial $ 25,474 $ 21,268 $ 46,742 $ 5,140,724 $ 5,187,466 $ 3,430 Energy 6,136 62,566 68,702 1,584,180 1,652,882 85 Commercial real estate: Buildings, land and other 12,384 2,725 15,109 4,868,471 4,883,580 967 Construction 195 1,066 1,261 1,311,398 1,312,659 402 Consumer real estate 7,442 2,129 9,571 1,184,842 1,194,413 1,425 Consumer and other 4,476 1,112 5,588 513,744 519,332 1,112 Total $ 56,107 $ 90,866 $ 146,973 $ 14,603,359 $ 14,750,332 $ 7,421 Impaired Loans. Loans are considered impaired when, based on current information and events, it is probable we will be unable to collect all amounts due in accordance with the original contractual terms of the loan agreement, including scheduled principal and interest payments. Impairment is evaluated in total for smaller-balance loans of a similar nature and on an individual loan basis for other loans. If a loan is impaired, a specific valuation allowance is allocated, if necessary, so that the loan is reported net, at the present value of estimated future cash flows using the loan’s existing rate or at the fair value of collateral if repayment is expected solely from the collateral. Interest payments on impaired loans are typically applied to principal unless collectibility of the principal amount is reasonably assured, in which case interest is recognized on a cash basis. Impaired loans, or portions thereof, are charged off when deemed uncollectible. Regulatory guidelines require us to reevaluate the fair value of collateral supporting impaired collateral dependent loans on at least an annual basis. While our policy is to comply with the regulatory guidelines, our general practice is to reevaluate the fair value of collateral supporting impaired collateral dependent loans on a quarterly basis. Thus, appraisals are generally not considered to be outdated, and we typically do not make any adjustments to the appraised values. The fair value of collateral supporting impaired collateral dependent loans is evaluated by our internal appraisal services using a methodology that is consistent with the Uniform Standards of Professional Appraisal Practice. The fair value of collateral supporting impaired collateral dependent construction loans is based on an “as is” valuation. Year-end impaired loans are set forth in the following table. No interest income was recognized on impaired loans subsequent to their classification as impaired. Unpaid Contractual Principal Balance Recorded Investment With No Allowance Recorded Investment With Allowance Total Recorded Investment Related Allowance Average Recorded Investment 2019 Commercial and industrial $ 30,909 $ 11,588 $ 12,772 $ 24,360 $ 7,849 $ 14,913 Energy 87,103 2,764 62,480 65,244 20,246 53,563 Commercial real estate: Buildings, land and other 9,252 6,255 2,354 8,609 383 13,690 Construction 697 665 — 665 — 354 Consumer real estate 570 570 — 570 — 547 Consumer and other 5 — 5 5 5 1,285 Total $ 128,536 $ 21,842 $ 77,611 $ 99,453 $ 28,483 $ 84,352 2018 Commercial and industrial $ 9,094 $ 2,842 $ 4,287 $ 7,129 $ 2,558 $ 18,246 Energy 67,900 6,817 39,890 46,707 9,671 75,453 Commercial real estate: Buildings, land and other 15,774 2,168 12,517 14,685 2,599 12,799 Construction — — — — — — Consumer real estate 293 293 — 293 — 704 Consumer and other 1,475 — 1,407 1,407 1,407 925 Total $ 94,536 $ 12,120 $ 58,101 $ 70,221 $ 16,235 $ 108,127 2017 Commercial and industrial $ 60,781 $ 28,038 $ 15,722 $ 43,760 $ 7,553 $ 30,073 Energy 99,606 33,080 61,162 94,242 13,267 76,492 Commercial real estate: Buildings, land and other 10,795 6,394 — 6,394 — 6,164 Construction — — — — — — Consumer real estate 1,214 1,214 — 1,214 — 1,167 Consumer and other — — — — — 11 Total $ 172,396 $ 68,726 $ 76,884 $ 145,610 $ 20,820 $ 113,907 Troubled Debt Restructurings . The restructuring of a loan is considered a “troubled debt restructuring” if both (i) the borrower is experiencing financial difficulties and (ii) the creditor has granted a concession. Concessions may include interest rate reductions or below market interest rates, principal forgiveness, restructuring amortization schedules, reductions in collateral and other actions intended to minimize potential losses. Troubled debt restructurings that occurred during 2019 , 2018 and 2017 are set forth in the following table. 2019 2018 2017 Balance at Restructure Balance at Year-end Balance at Restructure Balance at Year-end Balance at Restructure Balance at Year-end Commercial and industrial $ 3,845 $ 2,161 $ 2,203 $ — $ 4,026 $ 3,766 Energy — — 13,708 — 56,096 54,330 Commercial real estate: Buildings, land and other 9,457 9,393 — — — — Construction — — — — 388 388 Consumer real estate 124 120 — — — — $ 13,426 $ 11,674 $ 15,911 $ — $ 60,510 $ 58,484 Loan modifications are typically related to extending amortization periods, converting loans to interest only for a limited period of time, deferral of interest payments, waiver of certain covenants, consolidating notes and/or reducing collateral or interest rates. The modifications during the reported periods did not significantly impact our determination of the allowance for loan losses. Additional information related to restructured loans was as follows: 2019 2018 2017 Restructured loans past due in excess of 90 days at period-end: Number of loans 4 — 1 Dollar amount of loans $ 3,340 $ — $ 43,137 Restructured loans on non-accrual status at period end 5,576 — 53,622 Charge-offs of restructured loans: Recognized in connection with restructuring — — — Recognized on previously restructured loans 1,500 7,650 9,951 Proceeds from sale of restructured loans — 15,750 — Credit Quality Indicators. As part of the on-going monitoring of the credit quality of our loan portfolio, management tracks certain credit quality indicators including trends related to (i) the weighted-average risk grade of commercial loans, (ii) the level of classified commercial loans, (iii) the delinquency status of consumer loans (see details above) (iv) net charge-offs, (v) non-performing loans (see details above) and (vi) the general economic conditions in the State of Texas. We utilize a risk grading matrix to assign a risk grade to each of our commercial loans. Loans are graded on a scale of 1 to 14. A description of the general characteristics of the 14 risk grades is as follows: • Grades 1, 2 and 3 - These grades include loans to very high credit quality borrowers of investment or near investment grade. These borrowers are generally publicly traded (grades 1 and 2), have significant capital strength, moderate leverage, stable earnings and growth, and readily available financing alternatives. Smaller entities, regardless of strength, would generally not fit in these grades. • Grades 4 and 5 - These grades include loans to borrowers of solid credit quality with moderate risk. Borrowers in these grades are differentiated from higher grades on the basis of size (capital and/or revenue), leverage, asset quality and the stability of the industry or market area. • Grades 6, 7 and 8 - These grades include “pass grade” loans to borrowers of acceptable credit quality and risk. Such borrowers are differentiated from Grades 4 and 5 in terms of size, secondary sources of repayment or they are of lesser stature in other key credit metrics in that they may be over-leveraged, under capitalized, inconsistent in performance or in an industry or an economic area that is known to have a higher level of risk, volatility, or susceptibility to weaknesses in the economy. • Grade 9 - This grade includes loans on management’s “watch list” and is intended to be utilized on a temporary basis for pass grade borrowers where a significant risk-modifying action is anticipated in the near term. • Grade 10 - This grade is for “Other Assets Especially Mentioned” in accordance with regulatory guidelines. This grade is intended to be temporary and includes loans to borrowers whose credit quality has clearly deteriorated and are at risk of further decline unless active measures are taken to correct the situation. • Grade 11 - This grade includes “Substandard” loans, in accordance with regulatory guidelines, for which the accrual of interest has not been stopped. By definition under regulatory guidelines, a “Substandard” loan has defined weaknesses which make payment default or principal exposure likely, but not yet certain. Such loans are apt to be dependent upon collateral liquidation, a secondary source of repayment or an event outside of the normal course of business. • Grade 12 - This grade includes “Substandard” loans, in accordance with regulatory guidelines, for which the accrual of interest has been stopped. This grade includes loans where interest is more than 120 days past due and not fully secured and loans where a specific valuation allowance may be necessary, but generally does not exceed 30% of the principal balance. • Grade 13 - This grade includes “Doubtful” loans in accordance with regulatory guidelines. Such loans are placed on non-accrual status and may be dependent upon collateral having a value that is difficult to determine or upon some near-term event which lacks certainty. Additionally, these loans generally have a specific valuation allowance in excess of 30% of the principal balance. • Grade 14 - This grade includes “Loss” loans in accordance with regulatory guidelines. Such loans are to be charged-off or charged-down when payment is acknowledged to be uncertain or when the timing or value of payments cannot be determined. “Loss” is not intended to imply that the loan or some portion of it will never be paid, nor does it in any way imply that there has been a forgiveness of debt. In monitoring credit quality trends in the context of assessing the appropriate level of the allowance for loan losses, we monitor portfolio credit quality by the weighted-average risk grade of each class of commercial loan. Individual relationship managers, under the oversight of credit administration, review updated financial information for all pass grade loans to reassess the risk grade on at least an annual basis. When a loan has a risk grade of 9, it is still considered a pass grade loan; however, it is considered to be on management’s “watch list,” where a significant risk-modifying action is anticipated in the near term. When a loan has a risk grade of 10 or higher, a special assets officer monitors the loan on an on-going basis. The following tables present weighted average risk grades for all commercial loans by class. December 31, 2019 December 31, 2018 Weighted Loans Weighted Loans Commercial and industrial Risk grades 1-8 6.17 $ 4,788,857 6.12 $ 4,862,275 Risk grade 9 9.00 247,212 9.00 112,431 Risk grade 10 10.00 71,472 10.00 58,328 Risk grade 11 11.00 53,887 11.00 69,684 Risk grade 12 12.00 18,189 12.00 6,681 Risk grade 13 13.00 7,849 13.00 2,558 Total 6.44 $ 5,187,466 6.30 $ 5,111,957 Energy Risk grades 1-8 5.90 $ 1,488,301 5.76 $ 1,451,673 Risk grade 9 9.00 32,163 9.00 35,565 Risk grade 10 10.00 51,898 10.00 43,001 Risk grade 11 11.00 14,760 11.00 25,427 Risk grade 12 12.00 45,514 12.00 37,261 Risk grade 13 13.00 20,246 13.00 9,671 Total 6.39 $ 1,652,882 6.22 $ 1,602,598 Commercial real estate: Buildings, land and other Risk grades 1-8 6.78 $ 4,523,271 6.76 $ 4,143,264 Risk grade 9 9.00 163,714 9.00 109,660 Risk grade 10 10.00 103,626 10.00 62,353 Risk grade 11 11.00 84,057 11.00 98,176 Risk grade 12 12.00 8,529 12.00 12,669 Risk grade 13 13.00 383 13.00 2,599 Total 7.01 $ 4,883,580 6.98 $ 4,428,721 Construction Risk grades 1-8 7.25 $ 1,274,098 7.13 $ 1,177,260 Risk grade 9 9.00 21,509 9.00 60,754 Risk grade 10 10.00 15,243 10.00 24,877 Risk grade 11 11.00 1,144 11.00 4,826 Risk grade 12 12.00 665 12.00 — Risk grade 13 13.00 — 13.00 — Total 7.31 $ 1,312,659 7.29 $ 1,267,717 We have established maximum loan to value standards to be applied during the origination process of commercial and consumer real estate loans. We do not subsequently monitor loan-to-value ratios (either individually or on a weighted-average basis) for loans that are subsequently considered to be of a pass grade (grades 9 or better) and/or current with respect to principal and interest payments. As stated above, when an individual commercial real estate loan has a calculated risk grade of 10 or higher, a special assets officer analyzes the loan to determine whether the loan is impaired. At that time, we reassess the loan to value position in the loan. If the loan is determined to be impaired and collateral dependent, specific allocations of the allowance for loan losses are made for the amount of any collateral deficiency. If a collateral deficiency is ultimately deemed to be uncollectible, the amount is charged-off. These loans and related assessments of collateral position are monitored on an individual, case-by-case basis. We do not monitor loan-to-value ratios on a weighted-average portfolio-basis for commercial real estate loans having a calculated risk grade of 10 or higher as excess collateral from one borrower cannot be used to offset a collateral deficit for another borrower. When an individual consumer real estate loan becomes past due by more than 10 days, the assigned relationship manager will begin collection efforts. We only reassess the loan to value position in a consumer real estate loan if, during the course of the collections process, it is determined that the loan has become impaired and collateral dependent, and any collateral deficiency is recognized as a charge-off to the allowance for loan losses. Accordingly, we do not monitor loan-to-value ratios on a weighted-average basis for collateral dependent consumer real estate loans. Generally, a commercial loan, or a portion thereof, is charged-off immediately when it is determined, through the analysis of any available current financial information with regards to the borrower, that the borrower is incapable of servicing unsecured debt, there is little or no prospect for near term improvement and no realistic strengthening action of significance is pending or, in the case of secured debt, when it is determined, through analysis of current information with regards to our collateral position, that amounts due from the borrower are in excess of the calculated current fair value of the collateral. Notwithstanding the foregoing, generally, commercial loans that become past due 180 cumulative days are charged-off. Generally, a consumer loan, or a portion thereof, is charged-off in accordance with regulatory guidelines which provide that such loans be charged-off when we become aware of the loss, such as from a triggering event that may include new information about a borrower’s intent/ability to repay the loan, bankruptcy, fraud or death, among other things, but in any event the charge-off must be taken within specified delinquency time frames. Such delinquency time frames state that closed-end retail loans (loans with pre-defined maturity dates, such as real estate mortgages, home equity loans and consumer installment loans) that become past due 120 cumulative days and open-end retail loans (loans that roll-over at the end of each term, such as home equity lines of credit) that become past due 180 cumulative days should be classified as a loss and charged-off. Net (charge-offs)/recoveries, segregated by class of loan, were as follows: 2019 2018 2017 Commercial and industrial $ (10,131 ) $ (22,388 ) $ (17,453 ) Energy (6,058 ) (13,121 ) (10,009 ) Commercial real estate: Buildings, land and other (830 ) (263 ) 735 Construction 24 13 11 Consumer real estate (2,457 ) (1,538 ) (506 ) Consumer and other (14,272 ) (7,548 ) (5,919 ) Total $ (33,724 ) $ (44,845 ) $ (33,141 ) In assessing the general economic conditions in the State of Texas, management monitors and tracks the Texas Leading Index (“TLI”), which is produced by the Federal Reserve Bank of Dallas. The TLI is a single summary statistic that is designed to signal the likelihood of the Texas economy’s transition from expansion to recession and vice versa. Management believes this index provides a reliable indication of the direction of overall credit quality. The TLI is a composite of the following eight leading indicators: (i) Texas Value of the Dollar, (ii) U.S. Leading Index, (iii) real oil prices (iv) well permits, (v) initial claims for unemployment insurance, (vi) Texas Stock Index, (vii) Help-Wanted Index and (viii) average weekly hours worked in manufacturing. The TLI totaled 128.8 at November 30, 2019 (most recent date available) and 126.4 at December 31, 2018 . A higher TLI value implies more favorable economic conditions. Allowance for Loan Losses . The allowance for loan losses is a reserve established through a provision for loan losses charged to expense, which represents management’s best estimate of inherent losses that have been incurred within the existing portfolio of loans. The allowance, in the judgment of management, is necessary to reserve for estimated loan losses and risks inherent in the loan portfolio. Our allowance for loan loss methodology follows the accounting guidance set forth in U.S. generally accepted accounting principles and the Interagency Policy Statement on the Allowance for Loan and Lease Losses, which was jointly issued by U.S. bank regulatory agencies. In that regard, our allowance for loan losses includes allowance allocations calculated in accordance with ASC Topic 310, “Receivables” and allowance allocations calculated in accordance with ASC Topic 450, “Contingencies.” Accordingly, the methodology is based on historical loss experience by type of credit and internal risk grade, specific homogeneous risk pools and specific loss allocations, with adjustments for current events and conditions. Our process for determining the appropriate level of the allowance for loan losses is designed to account for credit deterioration as it occurs. The provision for loan losses reflects loan quality trends, including the levels of and trends related to non-accrual loans, past due loans, potential problem loans, criticized loans and net charge-offs or recoveries, among other factors. The provision for loan losses also reflects the totality of actions taken on all loans for a particular period. In other words, the amount of the provision reflects not only the necessary increases in the allowance for loan losses related to newly identified criticized loans, but it also reflects actions taken related to other loans including, among other things, any necessary increases or decreases in required allowances for specific loans or loan pools. The level of the allowance reflects management’s continuing evaluation of industry concentrations, specific credit risks, loan loss and recovery experience, current loan portfolio quality, present economic, political and regulatory conditions and unidentified losses inherent in the current loan portfolio. Portions of the allowance may be allocated for specific credits; however, the entire allowance is available for any credit that, in management’s judgment, should be charged off. While management utilizes its best judgment and information available, the ultimate determination of the appropriate level of the allowance is dependent upon a variety of factors beyond our control, including, among other things, the performance of our loan portfolio, the economy, changes in interest rates and the view of the regulatory authorities toward loan classifications. We monitor whether or not the allowance for loan loss allocation model, as a whole, calculates an appropriate level of allowance for loan losses that moves in direct correlation to the general macroeconomic and loan portfolio conditions we experience over time. Our allowance for loan losses consists of: (i) specific valuation allowances determined in accordance with ASC Topic 310 based on probable losses on specific loans; (ii) historical valuation allowances determined in accordance with ASC Topic 450 based on historical loan loss experience for similar loans with similar characteristics and trends, adjusted, as necessary, to reflect the impact of current conditions; (iii) general valuation allowances determined in accordance with ASC Topic 450 based on various risk factors that are internal to us; and (iv) macroeconomic valuation allowances determined in accordance with ASC Topic 450 based on general economic conditions and other risk factors that are external to us. The allowances established for probable losses on specific loans are based on a regular analysis and evaluation of problem loans. Loans are classified based on an internal credit risk grading process that evaluates, among other things: (i) the obligor’s ability to repay; (ii) the underlying collateral, if any; and (iii) the economic environment and industry in which the borrower operates. This analysis is performed at the relationship manager level for all commercial loans. When a loan has a calculated grade of 10 or higher, a special assets officer analyzes the loan to determine whether the loan is impaired and, if impaired, the need to specifically allocate a portion of the allowance for loan losses to the loan. Specific valuation allowances are determined by analyzing the borrower’s ability to repay amounts owed, collateral deficiencies, the relative risk grade of the loan and economic conditions affecting the borrower’s industry, among other things. Historical valuation allowances are calculated based on the historical gross loss experience of specific types of loans and the internal risk grade of such loans. We calculate historical gross loss ratios for pools of similar loans with similar characteristics based on the proportion of actual charge-offs experienced to the total population of loans in the pool. The historical gross loss ratios are periodically (no less than annually) updated based on actual charge-off experience. A historical valuation allowance is established for each pool of similar loans based upon the product of the historical gross loss ratio and the total dollar amount of the loans in the pool. Our pools of similar loans include similarly risk-graded groups of commercial and industrial loans, energy loans, commercial real estate loans, consumer real estate loans, consumer and other loans and overdrafts. General valuation allowances include allocations for groups of similar loans with similar risk characteristics that exceed certain concentration limits established by management and/or our board of directors. Concentration risk limits have been established, among other things, for certain industry concentrations, large balance and highly leveraged credit relationships that exceed specified risk grades and loans originated with policy exceptions that exceed specified risk grades. Additionally, general valuation allowances are provided for loans that did not undergo a separate, independent concurrence review during the underwriting process (generally those loans under $1.0 million at origination). Our allowance methodology for general valuation allowances also includes a reduction factor for recoveries of prior charge-offs to compensate for the fact that historical loss allocations are based upon gross charge-offs rather than net. The adjustment for recoveries is based on the lower of annualized, year-to-date gross recoveries or the total gross recoveries by loan portfolio segment for the preceding four quarters, adjusted, when necessary, for expected future trends in recoveries. The components of the macroeconomic valuation allowance include (i) reserves allocated as a result of applying an environmental risk adjustment factor to the base historical loss allocation, (ii) reserves allocated for loans to borrowers in distressed industries and (iii) reserves allocated based upon current economic trends and other quantitative and qualitative factors that could impact our loan portfolio segments. The aggregate sum of these components for each portfolio segment reflects management's assessment of current and expected economic conditions and other external factors that impact the inherent credit quality of loans in that portfolio segment. The environmental adjustment factor is based upon a more qualitative analysis of risk and is calculated through a survey of senior officers who are involved in credit making decisions at a corporate-wide and/or regional level. On a quarterly basis, survey participants rate the degree of various risks utilizing a numeric scale that translates to varying grades of high, moderate or low levels of risk. The results are then input into a risk-weighting matrix to determine an appropriate environmental risk adjustment factor. The various risks that may be considered in the determination of the environmental adjustment factor include, among other things, (i) the experience, ability and effectiveness of the bank’s lending management and staff; (ii) the effectiveness of our loan policies, procedures and internal controls; (iii) changes in asset quality; (iv) the impact of legislative and governmental influences affecting industry sectors; (v) the effectiveness of the internal loan review function; (vi) the impact of competition on loan structuring and pricing; and (vii) the impact of rising interest rates on portfolio risk. In periods where the surveyed risks are perceived to be higher, the risk-weighting matrix will generally result in a higher environmental adjustment factor, which, in turn will result in higher levels of macroeconomic valuation allowance allocations. The opposite holds true in periods where the surveyed risks are perceived to be lower. Macroeconomic valuation allowances also include amounts allocated for loans to borrowers in distressed industries within our commercial loan portfolio segments. To determine the amount of the allocation for our commercial and industrial and commercial real estate loan portfolio segments, management calculates the weighted-average risk grade for all loans to borrowers in distressed industries by loan portfolio segment. A multiple is then applied to the amount by which the weighted-average risk grade for loans to borrowers in distressed industries exceeds the weighted-average risk grade for all pass-grade loans within the loan portfolio segment to derive an allocation factor for loans to borrowers in distressed industries. The amount of the allocation for each loan portfolio segment is the product of this allocation factor and the outstanding balance of pass-grade loans within the identified distressed industries that have a risk grade of 6 or higher. Management identifies potential distressed industries by analyzing industry trends related to delinquencies, classifications and charge-offs as well as individual borrower financial information. The aforementioned methodology for allocating reserves for distressed industries within commercial and industrial and commercial real estate loan portfolio segments does not translate to our energy loan portfolio segment as the segment is made up of a single industry. For energy loans, management analyzes current economic trends, commodity prices and various other quantitative and qualitative factors that impact the inherent credit quality of our energy loan portfolio segment. If, based upon this analysis, management concludes that the prevailing conditions could have an adverse impact on the credit quality of our energy loan portfolio, management performs a sensitivity stress test on individual loans within our energy loan portfolio. The sensitivity stress test includes a commodity price shock to 75% of the commodity price deck. We also assess the financial strength of individual borrowers, the quality of collateral, the relative experience of the individual borrowers and their ability to withstand an economic downturn. The sensitivity stress test allows us to identify potential credit issues during p |