Debt | Note 7. Debt Our long-term debt consists of the following as of September 30, 2019 and December 31, 2018 (in thousands): September 30, December 31, 2019 2018 Prior Senior Secured Credit Facility $ — $ 20,000 New Senior Secured Credit Facility 13,000 — Equipment notes — 2,412 Finance leases 3,302 3,279 Total debt 16,302 25,691 Less: current portion (1,609) (2,236) Long-term debt $ 14,693 $ 23,455 The estimated fair value of total debt for the periods ended September 30, 2019 and December 31, 2018 was $15.8 million and $25.3 million, respectively. The carrying value of the senior secured revolving credit facility and the lines of credit approximated the fair value of debt as they can be paid at any time. The fair value for the remaining debt was estimated using Level 2 inputs by calculating the sum of the discounted future interest and principal payments through the date of maturity. Below is a description of our prior and new credit agreements and other financing arrangements. Prior Senior Secured Credit Facility On May 4, 2017, we entered into a credit agreement (the “Prior Credit Agreement”) with a group of financial institutions which originally consisted of a (i) senior secured revolving credit facility (the “Prior U.S. Facility”) in an aggregate principal amount of $25.0 million made available to Pioneer Investment, Inc. (the “U.S. Borrower”), of which up to $5.0 million was available for letters of credit and up to $5.0 million was available for swingline loans and (ii) senior secured revolving credit facility (the “Prior Canadian Facility”) (together, the “Prior Senior Secured Credit Facility”) in an aggregate principal amount of $25.0 million made available to NCS Multistage Inc. (the “Canadian Borrower”) . We entered into Amendment No. 1 to the Prior Credit Agreement on August 31, 2017, which increased the loan commitment available to the U.S. Borrower to $50.0 million from $25.0 million under the Prior U.S. Facility. The loan commitment available under the Prior Canadian Facility remained at $25.0 million. On February 16, 2018 and October 9, 2018 , we entered into Amendments No. 2 and No. 3, respectively, to the Prior Credit Agreement, which amended certain negative covenants contained in the Prior Credit Agreement. As of December 31, 2018 , we had $20.0 million in outstanding indebtedness under the Prior U.S. Facility and no outstanding indebtedness under the Prior Canadian Facility. Borrowings under the Prior U.S. Facility were available in U.S. dollars, Canadian dollars or Euros and had an interest rate equal to the Adjusted Base Rate or Eurocurrency Rate (each as defined in the Prior Credit Agreement), in each case, plus an applicable interest margin as set forth in the Prior Credit Agreement. Borrowings under the Prior Canadian Facility were available in U.S. dollars or Canadian dollars and accrued interest at the Canadian (Cdn) Base Rate, Canadian (U.S.) Base Rate, Eurocurrency Rate or Discount Rate (each as defined in the Prior Credit Agreement), in each case, plus an applicable interest margin as set forth in the Prior Credit Agreement. The Adjusted Base Rate, Canadian (U.S.) Base Rate and Canadian (Cdn) Base Rate applicable margin could have been between 2.25% and 3.00% and the Eurocurrency Rate applicable margin could have been between 3.25% and 4.00% , in each case, depending on the Company’s leverage ratio. We incurred interest expense related to the Prior Senior Secured Credit Facility, including commitment fees, of $ 0.5 million and $0.9 million for the nine months ended September 30, 2019 and 2018 , respectively. The obligations of the U.S. Borrower under the Prior U.S. Facility were guaranteed by Pioneer Intermediate, Inc. and the Company (together, the “Parent Guarantors”) and each of the other existing and future direct and indirect restricted subsidiaries of the Company organized under the laws of the United States (subject to certain exceptions) and were secured by substantially all of the assets of the Parent Guarantors, the U.S. Borrower and such other subsidiary guarantors, in each case, subject to certain exceptions and permitted liens. The obligations of the Canadian Borrower under the Prior Canadian Facility were guaranteed by the Parent Guarantors, the U.S. Borrower and each of the future direct and indirect restricted subsidiaries of the Company organized under the laws of the United States and Canada (subject to certain exceptions) and were secured by substantially all of the assets of the Parent Guarantors, the U.S. Borrower, the Canadian Borrower and such subsidiary guarantors, in each case, subject to certain exceptions and permitted liens. Direct costs of $1.0 million were incurred in connection with the Prior Senior Secured Credit Facility . The costs were capitalized as an asset as they represented the benefit of being able to access capital over the contractual term. The costs were amortized over the term of the Prior Senior Secured Credit Facility using the straight-line method. As a result of our New Credit Agreement (as defined below), which was a modification of our revolving credit facility, unamortized deferred costs of $0.3 million related to the Prior Senior Secured Credit Facility were deferred and are being amortized over the term of the new arrangement. On May 1, 2019, we entered into a new Second Amended and Restated Credit Agreement (the “New Credit Agreement”) amending and restating the Prior Credit Agreement. New Senior Secured Credit Facility On May 1, 2019, we entered into the New Credit Agreement with Pioneer Investment, Inc., as U.S. borrower, NCS Multistage Inc., as Canadian borrower, Pioneer Intermediate, Inc. and the lenders party thereto, Wells Fargo Bank, National Association as administrative agent in respect of the New U.S. Facility (as defined below) and Wells Fargo Bank, National Association, Canadian Branch, as administrative agent in respect of the New Canadian Facility (as defined below) (the senior secured revolving credit facilities provided thereunder, the “New Senior Secured Credit Facility”). The New Credit Agreement amended and restated the Prior Credit Agreement in its entirety. The New Senior Secured Credit Facility consists of a (i) senior secured revolving credit facility in an aggregate principal amount of $50.0 million made available to the U.S. Borrower (the “New U.S. Facility”), of which up to $5.0 million may be made available for letters of credit and up to $5.0 million may be made available for swingline loans and (ii) senior secured revolving credit facility in an aggregate principal amount of $25.0 million made available to the Canadian Borrower (the “New Canadian Facility”). The New Senior Secured Credit Facility will mature on May 1, 2023. As of September 30, 2019 , we had $13.0 million in outstanding indebtedness under the New U.S. Facility and no outstanding indebtedness under the New Canadian Facility. Borrowings under the New U.S. Facility may be made in U.S. dollars for Adjusted Base Rate Advances, and in U.S. dollars, Canadian dollars or Euros for Eurocurrency Rate Advances (each as defined in the New Credit Agreement). Such advances bear interest at the Adjusted Base Rate or at the Eurocurrency Rate plus an applicable interest margin as set forth in the New Credit Agreement. Borrowings under the New Canadian Facility may be made in U.S. dollars or Canadian dollars and bear interest at the Canadian (Cdn) Base Rate, Canadian (U.S.) Base Rate, Eurocurrency Rate or Discount Rate (each as defined in the New Credit Agreement), in each case, plus an applicable interest margin as set forth in the New Credit Agreement. The applicable interest rate at September 30, 2019 was 5.125% . We incurred interest expense related to the New Senior Secured Credit Facility, including commitment fees, of $0.3 million and $0.5 million for the three and nine months ended September 30, 2019 , respectively. The obligations of the U.S. Borrower under the New U.S. Facility are guaranteed by the Parent Guarantors and each of the other existing and future direct and indirect restricted subsidiaries of the Company organized under the laws of the United States (subject to certain exceptions) and are secured by substantially all of the assets of the Parent Guarantors, the U.S. Borrower and such other subsidiary guarantors, in each case, subject to certain exceptions and permitted liens. The obligations of the Canadian Borrower under the New Canadian Facility are guaranteed by the Parent Guarantors, the U.S. Borrower and each of the other future direct and indirect restricted subsidiaries of the Company organized under the laws of the United States and Canada (subject to certain exceptions) and are secured by substantially all of the assets of the Parent Guarantors, the U.S. Borrower, the Canadian Borrower and such other subsidiary guarantors, in each case, subject to certain exceptions and permitted liens. The New Credit Agreement contains financial covenants that require (i) commencing with the fiscal quarter ending June 30, 2019, compliance with a maximum leverage ratio test set at 2.50 to 1.00 as of the last day of each fiscal quarter, (ii) commencing with the fiscal quarter ending June 30, 2019, compliance with an interest coverage ratio test set at not more than 2.75 to 1.00 as of the last day of each fiscal quarter, (iii) if the leverage ratio as of the end of any fiscal quarter is greater than 2.00 to 1.00 and the amount outstanding under the New Canadian Facility at any time during such fiscal quarter was greater than $0, compliance as of the end of such fiscal quarter with a Canadian asset coverage ratio test of at least 1.00 to 1.00 and (iv) if the leverage ratio as of the end of any fiscal quarter is greater than 2.00 to 1.00 and the amount outstanding under the New U.S. Facility at any time during such fiscal quarter was greater than $0, compliance as of the end of such fiscal quarter with a U.S. asset coverage ratio test of at least 1.00 to 1.00. As of September 30, 2019 , we were in compliance with these financial covenants. The New Credit Agreement also contains customary affirmative and negative covenants, including, among other things, restrictions on the creation of liens, the incurrence of indebtedness, investments, dividends and other restricted payments, dispositions and transactions with affiliates. The New Credit Agreement also includes customary events of default for facilities of this type (with customary grace periods, as applicable). If an event of default occurs, the lenders under each of the New U.S. Facility and the New Canadian Facility may elect (after the expiration of any applicable notice or grace periods) to declare all outstanding borrowings under such facility, together with accrued and unpaid interest and other amounts payable thereunder, to be immediately due and payable. The lenders under each of the New U.S. Facility and the New Canadian Facility also have the right upon an event of default thereunder to terminate any commitments they have to provide further borrowings under such facility. Further, following an event of default under each of the New U.S. Facility and the New Canadian Facility, the lenders thereunder will have the right to proceed against the collateral granted to them to secure such facility Direct costs of $0.9 million were incurred in connection with the New Senior Secured Credit Facility. The costs were capitalized as an asset as they represent the benefit of being able to access capital over the contractual term. Additionally, $0.3 million of unamortized deferred costs related to the Prior Senior Secured Credit Facility are also being amortized over the term of the New Senior Secured Credit Facility using the straight-line method. Amortization expense of the deferred financing charges of $0.1 million was included in interest expense, net for the three and nine months ended September 30, 2019 . Promissory Note On February 27, 2017, Repeat Precision, LLC (“Repeat Precision”) entered into a promissory note with Security State Bank & Trust, Fredericksburg, for an aggregate borrowing capacity of $3.8 million. It bears interest at a variable interest rate based on prime plus 1.00% . The promissory note is secured against equipment, inventory and receivables. The promissory note was renewed on February 16, 2018 for an aggregate borrowing capacity of $4.3 million and was renewed again on February 15, 2019. The note is s cheduled to mature on February 16, 20 20. No other terms were changed. As of September 30, 2019 and December 31, 2018 , we had no outstanding indebtedness under the promissory note. Equipment Notes In February 2017, Repeat Precision entered into an equipment note in the amount of $0.8 million with Security State Bank & Trust, Fredericksburg. The equipment note bears interest at prime plus 1.00% , matures on February 27, 2021 and is collateralized by certain property. During the first quarter of 2019, the equipment note was paid in full and we had no outstanding indebtedness under the equipment note a s of September 30, 2019 . As of December 31, 2018 , the outstanding balance on the equipment note was $0. 4 million. In September 2018, Repeat Precision entered into an equipment note for an aggregate borrowing capacity of $3.8 million with Security State Bank & Trust, Fredericksburg. The equipment note bears interest at prime plus 1.00% , matures on June 7, 2023 and is collateralized by certain property. As of September 30, 2019 , we had no outstanding indebtedness under the equipment note. At December 31, 2018 , the outstanding balance on the equipment note was $2.0 million. |