Debt | Note 9. Debt 3.50% Convertible Senior Notes due February 2018 In February 2013, the Company issued 3.50% Convertible Senior Notes due 2018 (the “3.50% Convertible Notes”) under an indenture between the Company and The Bank of New York Mellon Trust Company, N.A., as trustee. Holders of the 3.50% Convertible Notes may convert their notes at any time until the close of the business day immediately preceding the maturity date. The 3.50% Convertible Notes are convertible into common stock of the Company at an initial conversion rate equal to 187.6877 shares of common stock per $1,000 principal amount, which is equivalent to a conversion price of approximately $5.33 per share of common stock, subject to adjustment. The 3.50% Convertible Notes bear interest at a rate of 3.50% per year, payable semi-annually in arrears in cash on February 1 and August 1 of each year. The 3.50% Convertible Notes has a maturity date of February 1, 2018, unless earlier repurchased, redeemed or converted, thus it has been classified as short-term debt on the Company’s unaudited condensed consolidated balance sheets. Holders of the 3.50% Convertible Notes who convert their notes in connection with a “make-whole fundamental change,” as defined in the indenture, may be entitled to a make-whole premium in the form of an increase in the conversion rate. Additionally, in the event of a “fundamental change,” as defined in the indenture, holders of the 3.50% Convertible Notes may require the Company to purchase all or a portion of their 3.50% Convertible Notes at a fundamental change repurchase price equal to 100% of the principal amount of 3.50% Convertible Notes, plus accrued and unpaid interest, if any, to, but not including, the fundamental change repurchase date. As of December 31, 2017, approximately $13.0 million aggregate principal amount was outstanding. On February 1, 2018, the 3.50% Convertible Notes were settled in full. Refer to Note 14. Subsequent Events to our unaudited condensed consolidated financial statements included in this Quarterly Report on Form 10-Q. 3.50% Series A Convertible Senior Notes due February 2018 In April 2014, the Company issued 3.50% Series A Convertible Senior Notes due 2018 (the “3.50% Series A Convertible Notes”) under an indenture between the Company and The Bank of New York Mellon Trust Company, N.A., as trustee. Holders of the 3.50% Series A Convertible Notes may convert their notes at any time on or after November 1, 2017 until the close of business on the business day immediately preceding the maturity date. The initial conversion rate is 187.6877 shares of the Company’s common stock per $1,000 principal amount, which represents an initial conversion price of approximately $5.33 per share of the Company’s common stock. The 3.50% Series A Convertible Notes generally have the same interest rate, maturity and other terms as the 3.50% Convertible Notes, except that the 3.50% Series A Convertible Notes are convertible into cash, shares of the Company’s common stock or a combination of cash and shares of common stock, at the Company’s option. Holders of the 3.50% Series A Convertible Notes who convert their notes in connection with a “make-whole fundamental change,” as defined in the indenture, may be entitled to a make-whole premium in the form of an increase in the conversion rate. Additionally, in the event of a “fundamental change,” as defined in the indenture, holders of the 3.50% Series A Convertible Notes may require the Company to purchase all or a portion of their 3.50% Series A Convertible Notes at a fundamental change repurchase price equal to 100% of the principal amount of the 3.50% Series A Convertible Notes, plus accrued and unpaid interest, if any, to, but not including, the fundamental change repurchase date. The 3.50% Series A Convertible Notes has a maturity date of February 1, 2018; thus, it has been classified as short-term debt on the Company’s unaudited condensed consolidated balance sheets. As of December 31, 2017, approximately $26.6 million aggregate principal amount was outstanding. On February 1, 2018, the 3.50% Series A Convertible Notes were repaid in full. Refer to Note 14. Subsequent Events to our unaudited condensed consolidated financial statements included in this Quarterly Report on Form 10-Q. 3.75% Convertible Senior Notes due July 2022 In August 2017, the Company issued $85.0 million aggregate principal amount of its 3.75% Convertible Senior Notes due 2022 (the “3.75% Convertible Notes”) under an indenture between the Company and The Bank of New York Mellon Trust Company, N.A., as trustee. $53.0 million aggregate principal amount of the 3.75% Convertible Notes were issued to certain holders of the Company’s outstanding 3.50% Convertible Notes and 3.50% Series A Convertible Notes (together, the “Existing Notes”) in exchange for approximately $47.0 million aggregate principal amount of the Existing Notes (the “Exchange”) and $32.0 million aggregate principal amount of the 3.75% Convertible Notes were issued to certain other qualified new investors for cash. The net proceeds of the cash issuance were used to repurchase approximately $28.0 million of Existing Notes (the “Repurchase”). Holders of the 3.75% Convertible Notes may convert their notes at any time on or after April 15, 2022 until the close of the business day immediately preceding the maturity date. Prior to April 15, 2022, holders of the 3.75% Convertible Notes may convert their notes only under certain circumstances Upon conversion, the Company will have the right to pay cash, or deliver shares of common stock of the Company or a combination thereof, at the Company’s election. The initial conversion rate is 174.8252 shares of the Company’s common stock per $1,000 principal amount (which represents an initial conversion price of approximately $5.72 per share of the Company’s common stock). The conversion rate, and thus the conversion price, is subject to adjustment as further described below. Holders of the 3.75% Convertible Notes who convert their notes in connection with a “make-whole fundamental change,” as defined in the indenture, may be entitled to a make-whole premium in the form of an increase in the conversion rate. Additionally, in the event of a “fundamental change,” as defined in the indenture, holders of the 3.75% Convertible Notes may require the Company to purchase all or a portion of their note at a fundamental change repurchase price equal to 100% of the principal amount of the 3.75% Convertible Notes, plus accrued and unpaid interest, if any, to, but not including, the fundamental change repurchase date. As of December 31, 2017, approximately $67.8 million aggregate principal amount was outstanding. Revolving Credit Facility On June 14, 2017, the Company entered into a credit and security agreement with a lender (the “Credit Agreement”). The Credit Agreement provides the Company with a revolving credit facility in the initial amount of $52.0 million (the “Revolving Credit Facility”). Availability for borrowings under the Revolving Credit Facility is subject to a borrowing base that is calculated as a function of the value of the Company’s eligible accounts receivable and eligible inventory, and the Company is required to maintain a minimum drawn balance of at least 30% of such availability. Interest on the borrowings under the Revolving Credit Facility is payable monthly in arrears at an annual interest rate of reserve-adjusted, 90-day LIBOR plus 4.50% and had initial maturity date of June 14, 2021. In December 2017, concurrently with the Term Loan Agreement described below, the Company entered into an amendment to the Credit Agreement (the “Amendment” and, collectively with the Credit Agreement, the “Amended Credit Agreement”). The Amendment reduced the maximum borrowings under the Revolving Credit Facility to $32.0 million and extended the maturity date of the Revolving Credit Facility to December 15, 2022. The Amended Credit Agreement contains restrictions and covenants applicable to the Company. Among other requirements, the Company may not permit the Fixed Charge Coverage Ratio (as defined in the Amended Credit Agreement) to be less than a certain specified ratio for each fiscal quarter during the term of the Revolving Credit Facility. In addition, the Amended Credit Agreement contains customary restrictive covenants that limit, among other things, the ability of the Company and its subsidiaries to (i) incur additional indebtedness, (ii) incur liens on their property, (iii) pay dividends or make other distributions, (iv) sell their assets, (v) make certain loans or investments, (vi) merge or consolidate, (vii) voluntarily repay or prepay certain indebtedness and (viii) enter into transactions with affiliates, in each case subject to certain exceptions. The Company was in compliance with the covenants as of December 31, 2017. As of December 31, 2017, approximately $25.0 million aggregate principal amount was outstanding under the Revolving Credit Facility. Term Loan In December 2017, the Company entered into a credit and security agreement with a lender (the “Term Loan Agreement”). The Term Loan Agreement provides for an initial term loan of $40.0 million with an additional tranche of $20.0 million available through December 31, 2018, if specified conditions are met (the “Term Loan”). In connection with the Amendment, the Company used a portion of the net proceeds from the initial advance to repay a portion of the outstanding borrowings under the Revolving Credit Facility. Interest on the Term Loan is payable monthly in arrears at an annual interest rate of 6.75% plus 90-day LIBOR. The Term Loan Agreement matures December 15, 2022 and, if prepaid, has fees equal to 3%, 2%, and 1% of the prepayment amount if such termination occurs within the first year, the second year, and the third year of funding, respectively. The term of the loan is 60 months with interest only for the first 24 months followed by straight-line amortization of principal for the remaining months. In addition, the Company will pay an annual administrative fee of 0.25% and a final payment of 4.0% of the Term Loan amount. The Term Loan issuance costs of $2.0 million, including a portion of the unamortized offering costs of Revolving Credit Facility, and a $2.0 million debt discount were deferred and being amortized over the 5-year term of the Term Loan. The following table presents the carrying value of all Debt (in thousands): As of December 31, 2017 Revolving 3.50% Convertible 3.50% Series A 3.75% Term Loan Total Carrying amount of equity conversion component $ — $ — $ $ $ — $ Principal amount of the Notes $ $ $ $ $ $ Unamortized debt costs — ) — ) ) ) Unamortized debt discount — — ) ) ) ) Net carrying amount $ $ $ $ $ $ Reported as: Short-term debt $ Long-term debt Total debt $ As of June 30, 2017 Revolving 3.50% Convertible 3.50% Series A Total Carrying amount of equity conversion component $ — $ — $ $ Principal amount of the Notes $ $ $ $ Unamortized debt costs — ) — ) Unamortized debt discount — — ) ) Net carrying amount $ $ $ $ Reported as: Short-term debt $ Long-term debt Total debt $ A summary of interest expense on the Debt is as follows (in thousands): Three Months Ended Six Months Ended December 31, December 31, 2017 2016 2017 2016 Interest expense related to contractual interest coupon $ $ $ $ Interest expense related to amortization of debt discount Interest expense related to amortization of debt issuance costs $ $ $ $ |