Long-Term Debt and Other Borrowings | LONG-TERM DEBT AND OTHER BORROWINGS Long-term debt consists of the following: June 30, 2020 December 31, 2019 Scheduled Maturity (In Thousands) Credit Agreement (presented net of the unamortized deferred financing costs of $0.7 million as of June 30, 2020 and $0.9 million as of December 31, 2019) June 2023 $ 746 $ 2,622 7.25% Senior Notes (presented net of the unamortized discount of $0.4 million as of June 30, 2020 and $1.7 million as of December 31, 2019 and unamortized deferred financing costs of $0.6 million as of June 30, 2020 and $2.8 million as of December 31, 2019) August 2022 79,745 291,444 7.50% First Lien Notes (presented net of the unamortized deferred financing costs of $5.7 million as of June 30, 2020 and $5.8 million as of December 31, 2019, net of the unamortized discount of $0.2 million as of June 30, 2020, and net of deferred restructuring gain of $5.6 million as of June 30, 2020) April 2025 399,613 344,172 10.00%/10.75% Second Lien Notes (presented net of the unamortized discount of $0.8 million as of June 30, 2020, and net of unamortized deferred financing costs of $1.3 million as of June 30, 2020, and net of deferred restructuring gain of $4 million as of June 30, 2020) April 2026 157,475 — 637,579 638,238 Less current portion — — Total long-term debt $ 637,579 $ 638,238 There was a $1.5 million balance outstanding and $2.8 million in letters of credit issued under the Credit Agreement as of June 30, 2020 . As of June 30, 2020 , and subject to compliance with the covenants, borrowing base, and other provisions of the agreements that may limit borrowings under the Credit Agreement, we had availability of $12.3 million . Our credit and senior note agreements contain certain affirmative and negative covenants, including covenants that restrict the ability to pay dividends or other restricted payments. We are in compliance with all covenants of our credit and senior note agreements as of June 30, 2020 . Refer to Note 7 - "Related Party Transactions," for a discussion of our amounts payable to affiliates and long-term affiliate payable to TETRA. Second Amendment to Credit Agreement On June 11, 2020, CSI Compressco, LP and CSI Compressco Sub Inc (the “Borrowers”) entered into the Second Amendment to Loan and Security Agreement (the “Amendment”) amending the Loan and Security Agreement dated June 29, 2018 (as amended, restated, amended and restated, supplemented or otherwise modified from time to time, the “Credit Agreement”) with Bank of America, N.A., in its capacity as administrative agent, issuing bank and swing line issuer (“Administrative Agent”), and the other lenders and loan parties party thereto. The Amendment provided for changes and modifications to the Credit Agreement which include, among other things, changes to certain terms of the Credit Agreement as follows: (i) resizing of the maximum credit commitment under the Credit Agreement from $50,000,000 to $35,000,000 ; (ii) the inclusion of a $5,000,000 reserve with respect to the Borrowing Base (as defined in the Credit Agreement) thereunder, which would result in reduced borrowing availability; (iii) the removal of the financial covenant compliance test with respect to the Consolidated Fixed Charge Coverage Ratio (as defined in the Credit Agreement); (iv) an increase in the applicable margin related to (x) LIBOR Rate Loans (as defined in the Credit Agreement) to a range between 3.00% and 3.50% and (y) Base Rate Loans (as defined in the Credit Agreement) to a range between 2.00% and 2.50% , in each case, which shall be determined according to average daily excess availability under the Credit Agreement; and (v) an increase in the rate used to calculate the commitment fee in respect of the unutilized commitments under the Credit Agreement to 0.50% . In connection to this amendment, $0.2 million of financing costs were incurred, and deferred against the carrying value of the amount outstanding, if any. Additionally, $0.2 million of financing fees were charged to other (income) expense, net during the three month period ended June 30, 2020. First Supplemental Indenture for the Old Notes On June 11, 2020, CSI Compressco, LP and CSI Compressco Finance Inc. (the "Issuers") announced that they had accepted for exchange $215,208,000 , or approximately 72.7% , of their outstanding 7.25% Senior Notes due 2022 (the "Old Notes") that were validly tendered (and not validly withdrawn) by 11:59 p.m., New York City time, on June 10, 2020, for (i) $50,000,000 of the Issuers' 7.50% Senior Secured First Lien Notes due 2025 (the "7.50% First Lien Notes") and (ii) $155,529,000 aggregate principal amount of new 10.00% / 10.75% Senior Secured Second Lien Notes due 2026 (the "10.00%/10.75% Second Lien Notes" and, together with the 7.50% First Lien Notes, the "New Notes"), pursuant to its previously announced exchange offer and consent solicitation (the "Exchange Offer"), which commenced on April 17, 2020. In connection with the exchange offer, we incurred financing fees of $4.8 million which were charged to other (income) expense, net during the three month period ended June 30, 2020. On June 12, 2020, following receipt of the requisite consents of the holders of the Old Notes, the Issuers entered into the First Supplemental Indenture (the "First Supplemental Indenture"), by and among the Issuers, the subsidiary guarantors named therein and U.S. Bank National Association, as trustee, to the Indenture, dated as of August 4, 2014 (the "Unsecured Indenture"), by and among the Issuers, the subsidiary guarantors named therein and U.S. Bank National Association, as trustee. The First Supplemental Indenture eliminated substantially all of the restrictive covenants and certain of the default provisions in the Unsecured Indenture and became operative upon the consummation by the Issuers of the Exchange Offer. On June 12, 2020, the Issuers issued $50,000,000 in aggregate principal amount of New First Lien Notes to certain holders of the Old Notes pursuant to the terms of the Exchange Offer. In March 2018, the Issuers had issued $350,000,000 in aggregate principal amount of 7.50% Senior Secured Notes due 2025 (the "Existing First Lien Notes" and, together with the New First Lien Notes, the "7.50% First Lien Notes") pursuant to the First Lien Base Indenture. The New First Lien Notes were issued as "additional notes" under the First Lien Base Indenture and will be treated as a single class with such notes but will not trade fungibly with the Existing First Lien Notes. Second Lien Notes Indenture On June 12, 2020, the Issuers issued $155,529,000 in aggregate principal amount of the 10.00%/10.75% Second Lien Notes to certain holders of the Old Notes pursuant to the terms of the Exchange Offer. The Issuers issued the 10.00%/10.75% Second Lien Notes pursuant to an indenture, dated June 12, 2020 (the "Second Lien Notes Indenture"),by and among the Issuers, the subsidiary guarantors named therein and U.S. Bank National Association, as trustee (the "Second Lien Trustee"). In connection with the payment of PIK Interest (as defined below), if any, in respect of the 10.00%/10.75% Second Lien Notes, the Issuers will be entitled, without the consent of the Holders, to increase the outstanding aggregate principal amount of the 10.00%/10.75% Second Lien Notes or issue additional notes ("PIK notes") under the Second Lien Notes Indenture on the same terms and conditions as the 10.00%/10.75% Second Lien Notes offered hereby (each such increase or issuance, a "PIK Payment"). The Issuers may issue additional 10.00%/10.75% Second Lien Notes under the Second Lien Notes Indenture from time to time. Any issuance of additional 10.00%/10.75% Second Lien Notes (including PIK notes) is subject to all of the covenants in the Second Lien Notes Indenture. The 10.00%/10.75% Second Lien Notes and any additional 10.00%/10.75% Second Lien Notes subsequently issued under the indenture, will be treated as a single class for all purposes under the indenture, including, without limitation, waivers, amendments, redemptions and offers to purchase. Subject to the making of PIK Payments, the Issuers will issue 10.00%/10.75% Second Lien Notes in denominations of $2,000 and integral multiples of $1,000 in excess of $2,000 ; provided that PIK Payments may result in 10.00%/10.75% Second Lien Notes being issued in denominations of $1.00 and integral multiples of $1.00 . The 10.00%/10.75% Second Lien Notes will mature on April 1, 2026. Interest on the 10.00%/10.75% Second Lien Notes will be payable semi-annually in arrears on April 1 and October 1, commencing on October 1, 2020. The Issuers will make each interest payment to the holders of record on March 15 and September 15 immediately preceding each interest payment date. Interest will accrue at (1) the annual rate of 7.250% payable in cash, plus (2) at the election of the Issuers (made by delivering a notice to the Second Lien Trustee not less than five business days prior to the record date), the annual rate of (i) 2.750% payable in cash (together with the annual rate set forth in clause (1), the "Cash Interest Rate") or (ii) 3.500% payable by increasing the principal amount of the outstanding 10.00%/10.75% Second Lien Notes or by issuing additional PIK notes, in each case rounding up to the nearest $1.00 (such increased principal amount or additional PIK notes, the "PIK Interest"). In the absence of an interest payment election made by the Issuers as set forth above, interest on the notes will be payable as if the Issuers had elected to pay PIK Interest with respect to the portion of interest payable pursuant to clause (2) above. The 10.00%/10.75% Second Lien Notes are jointly and severally, and fully and unconditionally, guaranteed (the "Guarantees") on a senior secured basis initially by each of the Partnership's domestic restricted subsidiaries (other than Finance Corp, certain immaterial subsidiaries and certain other excluded domestic subsidiaries, the "Guarantors") and will be secured by a second-priority security interest in substantially all of the Issuers' and the Guarantors' assets (other than certain excluded assets) (the "Collateral") as collateral security for their obligations under the 10.00%/10.75% Second Lien Notes, subject to certain permitted encumbrances and exceptions. At any time prior to April 1, 2023, the Issuers may on any one or more occasions redeem up to 35% of the aggregate principal amount of the 10.00%/10.75% Second Lien Notes issued under the Second Lien Notes Indenture at a redemption price of 110.000% of the principal amount of the 10.00%/10.75% Second Lien Notes, plus accrued and unpaid interest to the redemption date, with an amount of cash equal to the net cash proceeds of certain equity offerings. On or after April 1, 2023, the Issuers may redeem all or part of the 10.00%/10.75% Second Lien Notes at redemption prices (expressed as percentages of the principal amount) equal to (i) 107.500% for the twelve month period beginning on April 1, 2023; (ii) 105.000% for the twelve-month period beginning on April 1, 2024 and (iii) 100.000% at any time thereafter, plus accrued and unpaid interest up to, but not including, the redemption date. In addition, at any time prior to April 1, 2023, the Company may redeem all or a part of the 10.00%/10.75% Second Lien Notes at a redemption price equal to 100% of the principal amount of the 10.00%/10.75% Second Lien Notes to be redeemed plus a make-whole premium, plus accrued and unpaid interest up to, but not including, the redemption date. The Second Lien Notes Indenture contains customary covenants restricting the Partnership's ability and the ability of its restricted subsidiaries to: (i) pay distributions on, purchase or redeem its common units or purchase or redeem its subordinated debt; (ii) incur or guarantee additional indebtedness or issue certain kinds of preferred equity securities; (iii) create or incur certain liens securing indebtedness; (iv) sell assets, including dispositions of the Collateral; (v) consolidate, merge or transfer all or substantially all of its assets; (vi) enter into transactions with affiliates; and (vii) enter into agreements that restrict distributions or other payments from its restricted subsidiaries to the Partnership. These covenants are subject to a number of important limitations and exceptions, including certain provisions permitting the Partnership, subject to the satisfaction of certain conditions, to transfer assets to certain of its unrestricted subsidiaries. Moreover, if the 10.00%/10.75% Second Lien Notes receive an investment grade rating from at least two rating agencies and no default has occurred and is continuing under the 10.00%/10.75% Second Lien Notes Indenture, many of the restrictive covenants in the Second Lien Notes Indenture will be terminated. The Second Lien Notes Indenture also contains customary events of default and acceleration provisions relating to such events of default, which provide that upon an event of default under the Second Lien Notes Indenture, the Second Lien Trustee or the holders of at least 25% in aggregate principal amount of the then outstanding 10.00%/10.75% Second Lien Notes may declare all of the 10.00%/10.75% Second Lien Notes to be due and payable immediately. |