DEBT | DEBT At June 30, 2017 and December 31, 2016 , long-term debt consists of the following: June 30, 2017 December 31, 2016 Principal Unamortized Discount and Debt Issuance Costs Principal Unamortized Discount and Debt Issuance Costs (amounts in thousands) Term Loan, interest 2.80% and 2.62% at June 30, 2017 and December 31, 2016, respectively $ 38,000 $ (412 ) $ 39,500 $ (363 ) Convertible Notes, fixed rate interest of 8.00% — — 25,000 (4,669 ) Convertible Notes derivative liability — — 27,532 — Capital lease obligations 14 — 23 — Total debt 38,014 (412 ) 92,055 (5,032 ) Less current portion (2,258 ) — (2,263 ) — Long-term debt $ 35,756 $ (412 ) $ 89,792 $ (5,032 ) As of June 30, 2017 , the aggregate scheduled maturities of debt are as follows: Term Loan Capital Leases (amounts in thousands) Through Years Ending December 31: 2017 $ 750 $ 4 2018 3,750 8 2019 3,500 2 2020 4,000 — 2021 26,000 — Total $ 38,000 $ 14 Convertible Notes The Company and certain of its domestic subsidiaries entered into a Convertible Note Purchase Agreement (the Note Purchase Agreement), with certain note holders (collectively, the Noteholders) on June 30, 2014. Pursuant to the Note Purchase Agreement, the Company sold to the Noteholders an aggregate of $25.0 million of convertible senior notes (the Convertible Notes). On March 17, 2017, the Company paid in full the Convertible Notes. In connection with the repayment, the Company issued to the Noteholders an aggregate of 3,175,584 shares of Common Stock, par value $0.0001 , and cash in the aggregate amount of $5.6 million (of which $5.0 million is included in repayment of debt and $0.6 million is presented as extinguishment fees, both within financing activities on the condensed consolidated statements of cash flows). Upon derecognition of the net carrying amounts of the Convertible Notes (the remaining $20.0 million after the $5.0 million cash payment) and derivative liability ( $26.0 million ), the Company recognized a non-cash charge of $5.0 million as loss on early extinguishment and a non-cash addition to additional paid-in capital of $46.0 million for the fair value of the shares, which is not presented on the condensed consolidated statements of cash flows. The loss on early extinguishment of debt includes the write-off of unamortized loan fees and remaining interest due through the Forced Conversion date (defined below) of June 30, 2017. The Convertible Notes were convertible at the option of the holders thereof at any time into shares of the Common Stock at a conversion price of $7.10 per share, or 3,521,126 shares of Common Stock. After three years from the issuance date, the Company had the right to force a conversion of the Convertible Notes if the volume-weighted average price (VWAP) per share of its Common Stock exceeded 125% of the then conversion price for 20 days of a 30 day trading period (Forced Conversion date). The Convertible Notes bore interest at a rate of 8.00% per annum, payable in quarterly cash installments. The Convertible Notes would have matured on June 30, 2020, unless earlier repurchased, redeemed or converted. Subject to certain exceptions, the Company was not permitted to redeem the Convertible Notes until June 30, 2017. Prior Credit Facilities At December 31, 2015, the Company had a senior secured asset-based revolving credit facility (First Lien Loan), with a termination date of June 30, 2017, in the aggregate principal amount of up to $85.0 million , which included a subfacility for swingline loans up to an amount equal to 10% of the aggregate Revolver Commitments, as defined in the agreement, and a $35.0 million subfacility for standby letters of credit. The Company also had a five -year second lien term loan facility (Second Lien Term Loan) in an aggregate principal amount of $30.0 million . The Company had the ability, at its option at any time, to prepay the Second Lien Term Loan in whole or in part at the redemption prices set forth therein, which ranged from 103% of the principal amount thereof for prepayments during the period July 1, 2015 through June 30, 2016, 102% of the principal amount thereof for prepayments during the period July 1, 2016 through June 30, 2017, and 100% of the principal amount thereof for prepayments after June 30, 2017. 2016 Senior Credit Facilities On June 22, 2016, the Company entered into a senior credit agreement (Credit Agreement), which provided for an initial term loan of $40.0 million (Term Loan) and a revolving credit facility of up to $100.0 million (Revolving Credit Facility) (together with the Term Loan, the Senior Credit Facilities) both of which would have matured on June 22, 2021. Subsequent to June 30, 2017, this Credit Agreement has been amended and restated. See Note 16 - Subsequent Events. The Revolving Credit Facility included a subfacility for swingline loans up to an amount not to exceed $15.0 million , and a $35.0 million sublimit for the issuance of standby letters of credit. The Credit Agreement also included a provision permitting the Company, subject to certain conditions, to increase the aggregate amount of the commitments under the Revolving Credit Facility or establish one or more additional term loans in an aggregate amount of up to $50.0 million with optional additional commitments from existing lenders or new commitments from additional lenders. The Term Loan was payable in quarterly installments, with the first payment made September 30, 2016, and each such installment being in the aggregate annual principal amount (subject to adjustment as a result of prepayments) equal to 1.25% of the principal amount for the first four installments, 1.875% for the next eight installments, and 2.50% of the principal amount for the remaining installments. The Revolving Credit Facility could be used to provide ongoing working capital, fund permitted acquisitions and for other general corporate purposes of the Company and its subsidiaries. Proceeds of the Senior Credit Facilities were used primarily to refinance the Company’s First Lien Loan and Second Lien Term Loan and to pay related transaction fees and expenses, including a prepayment penalty of $0.6 million . In addition, $23.1 million of standby letters of credit issued under the First Lien Loan were rolled into and deemed issued under the Revolving Credit Facility. The Revolving Credit Facility could be used to provide ongoing working capital, fund permitted acquisitions, and for other general corporate purposes of the Company and its subsidiaries. The repayment of the Second Lien Term Loan was treated as extinguishment of debt and, as a result, the Company recognized a loss on extinguishment of debt of approximately $1.6 million in the second quarter of 2016, related to the write-off of unamortized net debt discount and issuance costs as well as transaction fees and expenses. Subject to the Credit Agreement, the Company paid interest on (i) each Base Rate Loan at the Base Rate (as defined therein) plus the Applicable Margin in effect from time to time, (ii) each LIBOR Index Rate Loan at the One Month LIBOR Index Rate (as defined therein) plus the Applicable Margin in effect from time to time and (iii) each Eurodollar Loan at the Adjusted LIBOR for the applicable Interest Period (as defined therein) in effect for such Loan plus the Applicable Margin in effect from time to time. The Applicable Margin, as of any date, was a percentage per annum determined by reference to the applicable Consolidated Net Leverage Ratio (as defined by the agreement) in effect on such date as set forth in the table below. Level Consolidated Net Leverage Ratio Eurodollar Loans, LIBOR Index Rate Loans and Letter of Credit Fee Base Rate Loans Commitment Fee I Less than 1.50:1.00 1.75% 0.75% 0.25% II Greater than or equal to 1.50:1.00 2.00% 1.00% 0.30% III Greater than or equal to 2.00:1.00 2.25% 1.25% 0.30% IV Greater than or equal to 2.50:1.00 2.50% 1.50% 0.35% V Greater than or equal to 3.00:1.00 2.75% 1.75% 0.40% As of June 30, 2017 , the Term Loan and Revolving Credit Facility bore interest at a rate equal to One Month LIBOR plus 175 basis points. The interest rate was subject to an increase of 200 basis points if an event of default existed under the Credit Agreement. The Company was required to pay a commitment fee on the average daily unused portion of the Revolving Credit Facility, based on the Applicable Margin which was 0.25% as of June 30, 2017 . The Company had the right at any time and from time to time to prepay any borrowing, in whole or in part, without premium or penalty, by giving irrevocable written notice (or telephonic notice promptly confirmed in writing) except that such notice shall be revocable if a prepayment is being made in anticipation of concluding a financing arrangement, and the Company was ultimately unable to secure such financing arrangement. The Company was required to prepay the Senior Credit Facilities under certain circumstances including from net cash proceeds from asset sales or dispositions in excess of certain thresholds, as well as from net cash proceeds from the issuance of certain debt by the Company. The Credit Agreement contained customary representations, warranties, and affirmative covenants. The Credit Agreement also contained customary negative covenants, subject to some exceptions, on (i) indebtedness and preferred equity, (ii) liens, (iii) fundamental changes, (iv) investments, (v) restricted payments, and (vi) sale of assets and certain other restrictive agreements. The Credit Agreement also contained customary events of default, such as payment defaults, cross-defaults to other material indebtedness, bankruptcy and insolvency, the occurrence of a defined change in control and the failure to observe the negative covenants and other covenants related to the operation of the Company’s business. The Credit Agreement also included two financial covenants: (i) limiting a maximum Consolidated Total Leverage ratio (as defined therein) to be no greater than 3.50 :1.00 for the fiscal quarters ending September 30, 2016 through June 30, 2017, 3.25 :1.00 for the fiscal quarters ending September 30, 2017 through June 30, 2018, and 3.00 :1.00 for each fiscal quarter ending thereafter and as adjusted pursuant to a Qualified Permitted Acquisition (as defined therein); and (ii) requiring a minimum Consolidated Fixed Charge Coverage ratio (as defined therein) as of the end of each fiscal quarter of 1.50 :1.00. As of June 30, 2017 , the Company was in compliance with the financial covenants and other covenants contained in the Credit Agreement. The obligations under the Credit Agreement were guaranteed by all of the Company’s domestic wholly-owned subsidiaries and were secured by a first-priority security interest in the Collateral (as defined therein). As of June 30, 2017 , the Company had $21.6 million letters of credit outstanding and $78.4 million available under the Revolving Credit Facility. The letters of credit related to the Company’s workers’ compensation and professional liability insurance policies. |