Debt | 6. Deb t Long-term debt consisted of the following at June 30, 2017 and December 31, 2016 (in thousands): June 30, 2017 December 31, 2016 Senior secured loans (includes unamortized discount of $410 and $1,442 based on an imputed interest rate of 6.2% and 6.6%, at June 30, 2017 and December 31, 2016, respectively) $ 72,259 $ 47,929 Less current maturities (3,666 ) (2,190 ) Total long-term debt $ 68,593 $ 45,739 Loan and Security Agreements Fifth Amendment to Credit Facility Subsequent to June 30, 2017, the Company materially amended and expanded its Credit Agreement (the “Credit Facility”) on August 2, 2017. The Company entered into the Credit Facility with Wells Fargo Capital Finance and CIT Bank, N.A. as joint lead arrangers, and including Goldman Sachs, Bank USA, Regions Bank, and Citizens Bank, N.A., with a Fifth Amendment to Credit Agreement (the “Fifth Amendment”) that amends that certain Credit Facility dated as of May 14, 2015 among inter alia the Company, certain of its subsidiaries, and each of the lenders named in the Credit Facility. The Credit Facility now provides for a $200.0 million credit facility, including a $95.0 million outstanding term loan, a $40.0 million delayed draw term loan commitment, a $10.0 million revolving loan commitment, and a $55.0 million uncommitted accordion. Specifically, the Amendment provides for, among other things, (i) the expansion of the Company’s delayed draw term facility from $10.0 million to $40.0 million , (ii) an increase in the Company’s uncommitted accordion amount from $20.0 million to $55.0 million , (iii) reduces principal installments to 2.5% per annum on or before June 30, 2019 with the existing 5.0% per annum due thereafter until the facility’s maturity date of August 2, 2022, (iv) favorable adjustment of leverage ratio to exclude excess of $2.5 million and up to $15 million in qualified cash from such calculation, and (v) an increase in the maximum amount of purchase consideration payable in respect of an individual permitted acquisition from $20.0 million to $25.0 million and in respect of all permitted acquisitions from $75.0 million to $175.0 million . The information below does not reflect this subsequent event. See Note 12 — Subsequent Events for more information regarding the Fifth Amendment to the Credit Facility, a July 2017 expansion of this credit facility, which increased the total borrowing capacity from $90.0 million to $200.0 million to pursue additional potential acquisitions. Loans Fourth Amendment to Credit Facility On April 21, 2017, the Company amended its $90.0 million Credit Facility among inter alia the Company, certain of its domestic and Canadian subsidiaries, and each of the lenders party thereto, which was subsequently amended by the Fifth Amendment (the "Fourth Amendment"). After giving effect to the Fourth Amendment, the Company borrowed an additional term loan of $15.0 million million (in conjunction with the acquisition of RightAnswers), which was previously part of the uncommitted accordion feature of the Credit Facility. The superseded Fourth Amendment provides for $73.6 million of term debt comprised of (i) a fully drawn U.S. term loan facility in an aggregate principal amount of $53.1 million (the “U.S. Term Loan”), (ii) a fully drawn Canadian term loan facility in an aggregate principal amount of $5.5 million (the “Canadian Term Loan” and (iii) an additional $15.0 million term loan from the accordion feature, and, together with the U.S. and Canadian Term Loans, the “Term Loans”). In addition, the Credit Facility also provides for fully available revolvers of $10.0 million , comprised of (i) a U.S. revolving credit facility in an aggregate principal amount of up to $9.0 million (the “U.S. Revolver”), (ii) a Canadian revolving credit facility in an aggregate principal amount of up to $1.0 million (the “Canadian Revolver” and, together with the U.S. Revolver, the “Revolver”). The superseded Fourth Amendment also includes provisions for optional, uncommitted increases in the maximum size of the loan facility available under the Credit Facility by an aggregate principal amount of $20.0 million upon the satisfaction of the terms and conditions set forth in the Credit Facility, of which $15.0 million was utilized as described above. The superseded Fourth Amendment also provides for, among other things, (i) a maturity date of November 15, 2021 (the "Maturity Date"), (ii) a maximum amount of permitted stock repurchases of $8.3 million , and (iii) a maximum amount of seller subordinated indebtedness permitted to be incurred in connection with permitted acquisitions of $16.7 million . As of June 30, 2017 , there were no amounts drawn on its U.S. or Canadian revolving loans outstanding under the Credit Facility, and there was $72.7 million outstanding on term loans comprised of (i) $67.3 million in U.S. term loans outstanding under the Credit Facility; and (ii) $5.4 million in Canadian term loans outstanding under the Credit Facility. Terms of Revolver Under the terms of the superseded Fourth Amendment, loans under the Revolver are available up to the lesser of (i) $10.0 million (the “Maximum Revolver Amount”) or (ii) the result of (a) 100% multiplied by (subject to step-downs beginning December 31, 2016) of certain subsidiaries' recurring revenues on a trailing twelve month basis, minus (b) the outstanding balance of the Term Loans and other uses of the capacity made under the Credit Facility (such amount, the “Credit Amount”). The Revolver provides a subfacility whereby Borrowers may request letters of credit (the “Letters of Credit”) in an aggregate amount not to exceed, at any one time outstanding, $0.5 million and $0.25 million , from the U.S & Canadian facilities, respectively. The aggregate amount of outstanding Letters of Credit are reserved against the credit availability under the Maximum Revolver Amount and the Credit Amount. Under the terms of the superseded Fourth Amendment, loans under the Revolver may be borrowed, repaid and reborrowed until November 15, 2021 (the “Maturity Date”), at which time all amounts borrowed under the Credit Facility must be repaid. Terms of Term Loans Under the terms of the superseded Fourth Amendment, the Term Loans are repayable, on a quarterly basis beginning December 31, 2016, by an amount equal to 5.0% per annum of the original principal amount of such loan. Any amount remaining unpaid is due and payable in full on the Maturity Date. Terms of Delay Draw Term Loan Under the terms of the superseded Fourth Amendment, pursuant to the terms of the Credit Facility, the DDTL is to be used to finance acquisitions, and was drawn in full in January, 2017 to finance the acquisition of Omtool. The DDTL is repayable, on a quarterly basis, by an amount equal to 5.0% per annum of the original funded amount of the DDTL. Any amount remaining unpaid would be due and payable in full on the Maturity Date. Other Terms of Credit Facility Under the terms of the superseded Fourth Amendment, at the option of the Company, U.S. loans accrue interest at a per annum rate based on (i) the U.S. base rate plus a margin ranging from 3.0% to 4.0% depending on the leverage ratio or (ii) the U.S. LIBOR rate determined in accordance with the Credit Facility (based on 1, 2, 3 or 6-month interest periods) plus a margin ranging from 4.0% to 5.0% depending on the leverage ratio. The U.S. base rate is a rate equal to the highest of (i) the federal funds rate plus a margin equal to 0.5% , the U.S. LIBOR rate for a 1-month interest period plus 1.0% , and (ii) Wells Fargo Capital Finance’s prime rate. Under the terms of the superseded Fourth Amendment, at the option of the Company, the Canadian loans accrue interest at a per annum rate based on (i) the Canadian prime rate or the U.S. base rate plus a margin ranging from 3.0% to 4.0% depending on the leverage ratio or (ii) the U.S. LIBOR rate determined in accordance with the Credit Facility (based on 1, 2, 3 or 6-month interest periods) (or the Canadian Bankers Acceptance ("Canadian BA") rate determined in accordance with the Credit Facility for obligations in Canadian dollars) plus a margin ranging from 4.0% to 5.0% depending on the leverage ratio. Under the terms of the superseded Fourth Amendment, accrued interest on the loans will be paid monthly, or, with respect to loans that are accruing interest based on the U.S. LIBOR rate or Canadian BA rate, at the end of the applicable U.S. LIBOR or Canadian BA interest rate period. Lenders are entitled to a premium (the “Prepayment Premium”) in the event of certain prepayments of the loans in an amount equal to (i) from November 15, 2016 to November 15, 2017, 2.0% times the sum of (a) the Maximum Revolver Amount plus (b) the outstanding principal amount of the Term Loan and DDTL on the date immediately prior to the date of the prepayment (such sum, the “Prepayment Amount”) (ii) from November 15, 2017 to November 15, 2018, 1.0% times the Prepayment Amount and (iii) during the period from and after November 15, 2018 to the Maturity Date, 0.0% times the Prepayment Amount. The Company may also be subject to prepayment fees in the case of commitment reductions of the Revolver and also may be obligated to prepay loans upon the occurrence of certain events. The Company is also obligated to pay other customary servicing fees, letter of credit fees and unused credit facility fees. The Loan Facility contains customary affirmative and negative covenants. The negative covenants limit the ability of the Company and its subsidiaries to, among other things (in each case subject to customary exceptions for a credit facility of this size and type): • Incur additional indebtedness or guarantee indebtedness of others; • Create liens on their assets; • Make investments, including certain acquisitions; • Enter into mergers or consolidations; • Dispose of assets; • Pay dividends and make other distributions on the Company’s capital stock, and redeem and repurchase the Company’s capital stock; • Enter into transactions with affiliates; and • Prepay indebtedness or make changes to certain agreements. Under the terms of the superseded Fourth Amendment, there are certain financial covenants that became more restrictive starting March 31, 2017. If an event of default occurs, at the election of the Lenders, a default interest rate shall apply on all obligations during an event of default, at a rate per annum equal to 2.00% above the applicable interest rate. Under the terms of the superseded Fourth Amendment, the Loan Facility limits the Company's ability to buyback its capital stock, subject to restrictions including a minimum liquidity requirement of $20.0 million before and after any such buyback. Termination of Prior Credit Facility In conjunction with the Fourth Amendment to the Credit Facility on April 21, 2017, the borrowing of $15.0 million from the previously uncommitted accordion feature of the Credit Facility triggered debt extinguishment accounting under ASC 470, Debt . As a result, the Company was required to write off debt issuance cost of $1.6 million as Loss on debt extinguishment, which included unamortized debt discount of $1.1 million and $0.5 million of lender fees related directly to the new debt. Interest Rate and Debt Discount Cash interest costs averaged 6.0% and 5.7% under the Credit Facility for the three months ended June 30, 2017 and for the year ended December 31, 2016 , respectively. In addition, the Company has $0.4 million of unamortized Debt Discount associated with the Credit Facility as of June 30, 2017 . These Debt Discount costs will be amortized to non-cash interest expense over the term of the Credit Facility. Debt Maturities Under the terms of the superseded Fourth Amendment, f uture debt maturities of long-term debt (excluding financing costs) at June 30, 2017 are as follows (in thousands): Year ending December 31: Remaining 2017 $ 1,884 2018 3,769 2019 3,769 2020 3,769 2021 59,478 Thereafter — $ 72,669 |