Debt | Note 8. Debt Our long-term debt consists of the following as of June 30, 2018 and December 31, 2017 (in thousands): June 30, December 31, 2018 2017 Senior Secured Credit Facility $ 20,000 $ 20,000 Promissory note 448 3,313 Equipment notes 1,133 1,295 Capital leases 3,460 2,428 Total debt 25,041 27,036 Less: current portion (2,801) (5,334) Long-term debt $ 22,240 $ 21,702 The estimated fair value of total debt for the periods ended June 30, 2018 and December 31, 2017 was $24.5 million and $26.7 million, respectively. The carrying value of the Senior Secured Credit Facility and the promissory note approximated the fair value of debt as it 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 credit agreement and other financing arrangements. Senior Secured Credit Facility On May 4, 2017, we entered into an Amended and Restated Credit Agreement (the “Credit Agreement”) with Pioneer Investment, Inc., as borrower (the “U.S. Borrower ”), NCS Multistage Inc., as borrower (the “Canadian Borrower”), Pioneer Intermediate, Inc. (together with the Company, the “Parent Guarantors”) and the lenders party thereto, Wells Fargo Bank, National Association as administrative agent in respect of the U.S. Facility (as defined below) and Wells Fargo Bank, National Association, Canadian Branch, as administrative agent in respect of the Canadian Facility (as defined below) (the senior secured revolving credit facilities provided thereunder, the “Senior Secured Credit Facility”). The Credit Agreement amended and restated the prior credit agreement in its entirety. The Senior Secured Credit Facility will mature on May 4, 2020 . The Senior Secured Credit Facility originally consisted of a (i) senior secured revolving credit facility in an aggregate principal amount of $25.0 million made available to the U.S. Borrower (the “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 “Canadian Facility”). We entered into Amendment No. 1 to the 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 U.S. Facility. The loan commitment available under the Canadian Facility remained at $25.0 million. On February 16, 2018, we entered into Amendment No. 2 to the Credit Agreement, which amended certain negative covenants contained in the Credit Agreement. As of June 30, 2018 and December 31, 2017, we had $20.0 million in outstanding indebtedness under the U.S. Facility and no outstanding indebtedness under the Canadian Facility. We incurred interest expense related to the Senior Secured Credit Facility of $0.4 million and $0.7 million for the three and six months ended June 30, 2018 , respectively. Borrowings under the U.S. Facility may be made in U.S. dollars, Canadian dollars or Euros and bear interest at a rate equal to the Adjusted Base Rate or Eurocurrency Rate (each as defined in the Credit Agreement), in each case, plus an applicable interest margin as set forth in the Credit Agreement. Borrowings under the 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 Credit Agreement), in each case, plus an applicable interest margin as set forth in the Credit Agreement. The Adjusted Base Rate, Canadian (U.S.) Base Rate and Canadian (Cdn) Base Rate applicable margin will be between 2.25% and 3.00% and Eurocurrency Rate applicable margin will be between 3.25% and 4.00% , in each case, depending on the Company’s leverage ratio. The applicable interest rate at June 30, 2018 was 6.25% . The obligations of the U.S. Borrower under the 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 Canadian Facility are 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 are secured by substantially all of the assets of the Parent Guarantors, the U.S. Borrower, the Canadian Borrower and such subsidiary guarantors, if any, in each case, subject to certain exceptions and permitted liens. The Credit Agreement contains financial covenants that require (i) commencing with the fiscal quarter ending June 30, 2017, compliance with a leverage ratio test set at (A) 3.00 to 1.00 as of the last day of each fiscal quarter ending prior to March 31, 2018 and (B) 2.50 to 1.00 as of the last day of each fiscal quarter ending on or after March 31, 2018, (ii) commencing with the fiscal quarter ending June 30, 2017, compliance with an interest coverage ratio test set at 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 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 set at 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 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 set at 1.00 to 1.00. As of June 30, 2018 , we were in compliance with these financial covenants. The 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 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 U.S. Facility and the 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 U.S. Facility and the 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 U.S. Facility and the Canadian Facility, the lenders thereunder will have the right to proceed against the collateral granted to them to secure such facility. Direct costs of $1.0 million were incurred in connection with the 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. The costs are being amortized over the term of the Senior Secured Credit Facility using the straight-line method. Amortization expense of the deferred financing charges of $0.1 million and $0.2 million was included in interest expense, net for the three and six months ended June 30, 2018 , respectively. Promissory Note On February 27, 2017, Repeat Precision entered into a promissory note with Security State Bank & Trust, Fredericksburg, for an aggregate borrowing capacity of $3.8 million. The promissory note is secured against equipment, inventory and receivables. It bears interest at a variable interest rate based on prime plus 1.00% . Any principal amount not paid by the maturity date bears interest at the lesser of the maximum rate allowed per law or 18.00% per annum. The promissory note was renewed on February 16, 2018 for an aggregate borrowing capacity of $4.3 million and is scheduled to mature on February 16, 2019 . No other terms were changed. As of June 30, 2018 and December 31, 2017, the outstanding balance on the promissory note was $0 .4 million and $3.3 million, respectively. 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. Any principal amount not paid by the maturity date bears interest at the lesser of the maximum rate allowed per law or 18.00% per annum. As of June 30, 2018 and December 31, 2017, the outstanding balance on the equipment note was $0.5 million and $0.6 million, respectively. In April 2017, Repeat Precision entered into another 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 December 21, 2018 and is collateralized by certain property. Any principal amount not paid by the maturity date bears interest at the lesser of the maximum rate allowed per law or 18.00% per annum. As of June 30, 2018 and December 31, 2017, the outstanding balance on the equipment note was $0.6 million and $0.7 million, respectively. |