Revolving Line of Credit and Long Term Debt | 6. Revolving Line of Credit and Long ‑Term Debt As of June 30, 2015 and December 31, 2014 , the Company’s long ‑ term debt consisted of the following: June 30, December 31, 2015 2014 First Lien Term Loan $ $ Original issue discount, net of accumulated amortization Less current portion Long-term debt $ $ First and Second Lien Credit Agreements On April 20, 2012, the Company entered into a First Lien Credit Agreement (the “First Lien Agreement”) and Second Lien Credit Agreement (the “Second Lien Agreement”). The First Lien Agreement consists of a six -year $30 million revolving credit facility (the “Revolving Credit Facility”) and a six ‑year, $345 million term loan facility (the “First Lien Term Loan”), which was issued at an original issue discount of $3.5 million that is being recognized in interest expense over the term of the debt using the effective interest method. The Second Lien Agreement consisted of a six ‑and ‑a ‑half ‑year , $95 million term loan facility (the “Second Lien Term Loan”), which was issued at an original issue discount of $950 thousand that was recognized in interest expense over the term of the debt using the effective interest method. The First Lien Agreement and the Second Lien Agreement are both secured by substantially all of the assets of the Company. On May 9, 2013, the Company amended the First Lien Agreement to borrow an additional $50 million, lower interest rates, and adjust certain financial covenants. Proceeds from the additional borrowings were used to pay down the principal balance of the Second Lien Term Loan. On May 9, 2014, the Company amended the First Lien Agreement to borrow an additional $35 million in the form of an incremental term loan increase. Proceeds from the additional borrowings and $10 million of cash were used to pay off the remaining balance of the Second Lien Term Loan. The transactions resulted in a loss on extinguishment of debt of $2.9 million, consisting of unamortized deferred financing fees of $1.5 million, payments of fees to lenders of $0.5 million and loss on original issue discount of $0.9 million, which are recorded as extinguishment of debt in other expense, net, in the consolidated statement of operations for the quarter ended June 30, 2014. During the second quarter of 2015, the Company used proceeds from the IPO to pay down $223.0 million of the principal balance of the First Lien Term Loan. The transactions resulted in a loss on extinguishment of debt of $638 thousand, consisting of unamortized deferred financing fees of $489 thousand and loss on original issue discount of $149 thousand, which are recorded as extinguishment of debt in other expense, net, in the consolidated statement of operations for the quarter ended June 30, 2015. At the discretion of the Company, interest accrues on borrowings on the Revolving Credit Facility at either the London Interbank Offered Rate (“LIBOR” or “Eurodollar Rate”) plus an applicable margin or the adjusted base rate (“ABR”) plus an applicable margin, as defined in the First Lien Agreement. There were no borrowings outstanding under the Revolving Credit Facility at both June 30, 2015 or December 31, 2014 ; however, the Company had letters of credit outstanding of approximately $100 thousand at June 30, 2015 and December 31, 2014 , which reduced the borrowing capacity of the Revolving Credit Facility to $29.9 million. The Company is charged a loan commitment fee of 0.50% for unused amounts on the Revolving Credit Facility. After the May 9, 2013, amendment, at the discretion of the Company, interest accrues on outstanding borrowings under the First Lien Term Loan at either the ABR, as defined in the First Lien Agreement, plus an applicable margin, currently 2.25% , or the Eurodollar Rate with a floor of 1.00% plus an applicable margin, currently 3.25% . The Company elected to use the Eurodollar Rate during the six months ended June 30, 2015 , and the interest rate at June 30, 2015 , was 4.25% . The Company was required to make quarterly principal payments of $863 thousand from June 2012 through March 31, 2013, payments of $979 thousand from June 30, 2013 through March 31, 2014, and $1.1 million from June 30, 2014 through April 20, 2018, when the First Lien Agreement matures, and to make interest payments. The remaining principal balance of the First Lien Term Loan is due at maturity on April 20, 2018. The Company is required to make additional annual principal payments on the First Lien Term Loan equal to 25% or 50% (determined based on the senior leverage ratio at year ‑end) of the excess cash flow generated, if any. There was no Excess Cash Flow payment required for the year ended December 31, 2014 . The First Lien Agreement contains certain restrictive and financial covenants with which the Company must comply on a quarterly basis, including a maximum net leverage ratio and a minimum interest coverage ratio, as defined. The Company is also limited in its ability to incur additional indebtedness or liens; pay dividends or make certain other restricted payments and enter into certain transactions with affiliates; merge or consolidate with another entity; or sell, assign, transfer, convey, or otherwise dispose of all or substantially all of its assets. The Company was in compliance with these restrictive and financial covenants as of June 30, 2015 and December 31, 2014 . |