Debt | 8. Debt First Lien Senior Secured Term Loan due January 2021 (Secured Loan) In January 2016, the Company closed a $70.0 million first lien senior secured debt financing agreement (as amended, the “Secured Loan”) with Cerberus Business Finance, LLC, as collateral and administrative agent. As required by the terms of the financing, upon the closing of the financing, the Company used a portion of the net proceeds from the financing to repurchase approximately $63.4 million in aggregate principal amount of the 3.75% Convertible Senior Notes. The Secured Loan is repayable in consecutive quarterly installments of $875,000 with the final payment due on the maturity date. The Secured Loan matures on the earlier of: (i) January 11, 2021 and (ii) the date that is 120 days prior to the scheduled maturity date of the 3.5% Convertible Senior Notes maturing February 1, 2018 unless the Company has set aside specifically identifiable funds raised from new common equity or new debt equal to the then-outstanding principal amount of the 3.5% Convertible Senior Notes. The Company may, at its election, repay the Secured Loan at any time and if so, the Company will be required to pay a prepayment premium of 2% of the outstanding amount if the Secured Loan is repaid or accelerated within the first year and 1% of the outstanding amount if the Secured Loan is repaid or accelerated within the second year. The Secured Loan is secured by first-priority liens on substantially all the assets of the Company. Interest under the Secured Loan is payable monthly at a variable rate per annum equal to, at the Company’s option, (i) the LIBOR Rate for one month plus an applicable margin of 7.00% (subject to a LIBOR Rate floor of 1.00% per annum), or (ii) a Reference Rate, which is the higher of 1) 3.25%, 2) Federal Funds Rate plus 0.5%, 3) the LIBOR rate for 1 month plus 1%, and 4) the US Prime Rate as published in the Wall Street Journal, plus an applicable margin of 4.75% per annum. As part of the amendment in March 2017, discussed further below, the applicable margins for the LIBOR and Reference Rate increased to 7.50% and 5.25%, respectively, and these margins will remain in effect until certain specified conditions are met. Under the terms of this Secured Loan, the Company must comply with certain customary financial and non-financial covenants, including covenants for secured leverage, total leverage, fixed charges, EBITDA, capital expenditures and other covenants as defined in the agreement. The Company was in compliance with the required covenants as of March 31, 2017, and June 30, 2016. In November 2016, Company and Cerberus amended the Secured Loan, which modified the compliance levels of certain financial covenants and specified that the Company pay a fee of $0.3 million. In conjunction with the amendment, the Company repaid $5.0 million of the outstanding principal amount. In March 2017, the Secured Loan was further amended, which (i) modified the compliance levels and definitions of certain financial covenants (ii) increased the applicable interest rate margins under the Secured Loan by 0.50% until certain specified conditions are met, (iii) required the Company to obtain a letter of credit in the amount of $12.5 million for the benefit of the administrative agent, which is drawable and will be applied to any outstanding principal balance upon the occurrence or nonoccurrence of certain conditions and events and (iv) specified that the Company pay a fee of $0.3 million. The net proceeds from the offering, after deducting the initial purchaser’s discount and commission and the related offering costs, were approximately $65.5 million. The offering costs of $3.1 million and the initial purchaser’s discount and commission of $1.4 million are classified within long-term debt on the condensed consolidated balance sheets and are being amortized to interest expense using the effective interest method over five years. The funds associated with the $12.5 million letter of credit were reclassified from cash and cash equivalents to long-term restricted cash on the condensed consolidated balance sheet at the time of the amendment in March 2017. 3.75% Convertible Senior Notes due August 2016 In August 2011, the Company issued the 3.75% Convertible Senior Notes to certain qualified institutional buyers, or QIBs. The 3.75% Convertible Senior Notes were offered and sold to the QIBs pursuant to Rule 144A under the Securities Act of 1933, as amended (the “Securities Act”), or Rule 144A. The net proceeds from the $100 million offering, after deducting the initial purchaser’s discount and commission and the related offering costs, were approximately $96.1 million. The offering costs and the initial purchaser’s discount and commission were amortized to interest expense using the effective interest method over five years. The 3.75% Convertible Senior Notes bore interest at a rate of 3.75% per year, payable semi-annually in arrears in cash on February 1 and August 1 of each year, beginning on February 1, 2012. The 3.75% Convertible Senior Notes matured on August 1, 2016. A portion of these notes were redeemed in January 2016, and the remainder of these notes was redeemed on August 1, 2016, as discussed further below. The 3.75% Convertible Senior Notes were issued under an Indenture between the Company and The Bank of New York Mellon Trust Company, N.A., as trustee. Holders of the 3.75% Convertible Senior Notes may convert their 3.75% Convertible Senior Notes at any time on or after May 1, 2016 until the close of business on the business day immediately preceding the maturity date. Prior to May 1, 2016, holders of the 3.75% Convertible Senior Notes could convert their 3.75% Convertible Senior Notes only under the following circumstances: (1) during any calendar quarter after the calendar quarter ending September 30, 2011, and only during such calendar quarter, if the closing sale price of the Company’s common stock for each of 20 or more trading days in the 30 consecutive trading days ending on the last trading day of the immediately preceding calendar quarter exceeds 130% of the conversion price in effect on the last trading day of the immediately preceding calendar quarter; (2) during the five consecutive business days immediately after any five consecutive trading-day period (such five consecutive trading-day period, the “Note Measurement Period”) in which the trading price per $1,000 principal amount of 3.75% Convertible Senior Notes for each trading day of that Note Measurement Period was equal to or less than 98% of the product of the closing sale price of shares of the Company’s common stock and the applicable conversion rate for such trading day; (3) if the Company calls any or all of the 3.75% Convertible Senior Notes for redemption, at any time prior to the close of business on the business day immediately preceding the redemption date; or (4) upon the occurrence of specified corporate transactions as described in the Indenture. Upon conversion by holders of the 3.75% Convertible Senior Notes, the Company will have the right to pay or deliver, as the case may be, cash, shares of common stock of the Company or a combination thereof, at the Company’s election. At any time on or prior to the 33rd business day immediately preceding the maturity date, the Company may irrevocably elect to (a) deliver solely shares of common stock of the Company in respect of the Company’s conversion obligation or (b) pay cash up to the aggregate principal amount of the 3.75% Convertible Senior Notes to be converted and pay or deliver, as the case may be, cash, shares of common stock of the Company or a combination thereof in respect of the remainder, if any, of the Company’s conversion obligation in excess of the aggregate principal amount of the 3.75% Convertible Senior Notes being converted. The initial conversion rate was 105.5548 shares of the Company’s common stock per $1,000 principal amount of 3.75% Convertible Senior Notes (which represents an initial conversion price of approximately $9.47 per share of the Company’s common stock). In accordance with ASC 470-20, Debt with Conversion and Other Options , the Company separately accounts for the liability and equity conversion components of the 3.75% Convertible Senior Notes. The principal amount of the liability component of the 3.75% Convertible Senior Notes was $75.9 million as of the date of issuance based on the present value of its cash flows using a discount rate of 10%, our approximate borrowing rate at the date of the issuance for a similar debt instrument without the conversion feature. The carrying value of the equity conversion component was $24.1 million. A portion of the initial purchaser’s discount and commission and the offering costs totaling $0.9 million was allocated to the equity conversion component. The liability component is being accreted to the principal amount of the 3.75% Convertible Senior Notes using the effective interest method over five years. In January 2016, the Company repurchased approximately $63.4 million in aggregate principal amount of the 3.75% Convertible Senior Notes for $66.6 million in cash. In August 2016, the Company settled the remaining 3.75% Convertible Senior Notes for approximately $36.6 million aggregate principal amount and $0.7 million accrued interest for approximately $37.3 million in cash. 3.50% Convertible Senior Notes due February 2018 In February 2013, the Company issued $115.0 million aggregate principal amount of its 3.50% Convertible Senior Notes to certain Qualified Institutional Buyers or QIBs. The 3.50% Convertible Senior Notes were offered and sold to the QIBs pursuant to Rule 144A. The net proceeds from the offering, after deducting the initial purchaser’s discount and commission and the related offering costs, were approximately $110.5 million. The offering costs and the initial purchaser’s discount and commission are both being amortized to interest expense using the effective interest method over five years. The 3.50% Convertible Senior 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, which began on August 1, 2013. The 3.50% Convertible Senior Notes will mature on February 1, 2018, unless earlier repurchased, redeemed or converted. In April 2014, through a series of transactions, the Company refinanced approximately $70.3 million aggregate principal amount of the 3.50% Convertible Senior Notes with approximately $70.3 million aggregate principal amount of the Company’s new 3.50% Series A Convertible Senior Notes due 2018 (the “3.50% Series A Convertible Notes”). The 3.50% Convertible Notes were issued 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 3.50% Convertible Notes at any time until the close of business on the business day immediately preceding the maturity date. The 3.50% Convertible Notes are convertible, as described below into common stock of the Company at an initial conversion rate equal to 187.6877 shares of common stock per $1,000 principal amount of the 3.50% Convertible Notes, which is equivalent to a conversion price of approximately $5.33 per share of common stock, subject to adjustment. Holders of the 3.50% Convertible Notes who convert their 3.50% Convertible 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. In accordance with guidance in ASC 470-20, Debt with Conversion and Other Options and ASC 815-15, Embedded Derivatives , the Company determined that the embedded conversion components of the 3.50% Convertible Note do not require bifurcation and separate accounting. The remaining $44.7 million principal amount of the 3.50% Convertible Note has been recorded in short-term Debt on the condensed consolidated balance sheet as of March 31, 2017. 3.50% Series A Convertible Senior Notes due February 2018 In April 2014, the Company entered into note exchange agreements with certain holders (the “Participating Holders”) of the 3.50% Convertible Notes to refinance approximately $70.3 million aggregate principal amount of the 3.50% Convertible Notes with approximately $70.3 million aggregate principal amount of the 3.50% Series A Convertible Notes. Pursuant to the note exchange agreements, the Company also paid the Participating Holders an aggregate of approximately $0.4 million in cash in connection with such transactions. The principal amount of 3.50% Convertible Notes refinanced for each $1,000 principal amount of the 3.50% Series A Convertible Notes was $1,000 and the amount in cash paid per $1,000 principal amount of such 3.50% Convertible Notes delivered was determined in individual negotiations between the Company and each Participating Holder. The 3.50% Series A Convertible Notes 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. The 3.50% Series A Convertible Notes were issued 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 Securities at any time on or after November 1, 2017 until the close of business on the business day immediately preceding the maturity date. Prior to November 1, 2017, holders of the 3.50% Series A Convertible Notes may convert their securities only under the following circumstances: (1) during any calendar quarter after the calendar quarter ending September 30, 2014, and only during such calendar quarter, if the closing sale price of the Company’s common stock for each of 20 or more trading days in the 30 consecutive trading days ending on the last trading day of the immediately preceding calendar quarter exceeds 130% of the conversion price in effect on the last trading day of the immediately preceding calendar quarter; (2) during the five consecutive business days immediately after any five consecutive trading-day period (such five consecutive trading-day period, the “Note Measurement Period”) in which the trading price per $1,000 principal amount of 3.50% Series A Convertible Notes for each trading day of that Note Measurement Period was equal to or less than 98% of the product of the closing sale price of shares of the Company’s common stock and the applicable conversion rate for such trading day; or (3) upon the occurrence of specified corporate transactions as described in the Indenture. Upon conversion by holders of the 3.50% Series A Convertible Notes, the Company will have the right to pay or deliver, as the case may be, cash, shares of common stock of the Company or a combination thereof, at the Company’s election. At any time on or prior to the 17th business day immediately preceding the maturity date, the Company may irrevocably elect to (a) deliver solely shares of common stock of the Company in respect of the Company’s conversion obligation or (b) pay cash up to the aggregate principal amount of the 3.50% Series A Convertible Notes to be converted and pay or deliver, as the case may be, cash, shares of common stock of the Company or a combination thereof in respect of the remainder, if any, of the Company’s conversion obligation in excess of the aggregate principal amount of the 3.50% Series A Convertible Notes being converted. The initial conversion rate is 187.6877 shares of the Company’s common stock per $1,000 principal amount of 3.50% Series A Convertible Notes (which represents an initial conversion price of approximately $5.33 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.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. In accordance with Accounting Standards Codification, or ASC 470-20, Debt with Conversion and Other Options , the Company separately accounts for the liability and equity conversion components of the 3.50% Series A Convertible Notes. The principal amount of the liability component of the 3.50% Series A Convertible Notes was $62.5 million as of the date of issuance based on the present value of its cash flows using a discount rate of 7%, our approximate borrowing rate at the date of the issuance for a similar debt instrument without the conversion feature. The carrying value of the equity conversion component was $7.9 million. In addition, the portion of the cash amount paid to the Participating Holders totaling $0.4 million was allocated to the debt discount with the remaining $47,000 to the equity component. The liability component is being accreted to the principal amount of the 3.50% Series A Convertible Notes using the effective interest method through the maturity in February 2018. The following table presents the carrying values of all Convertible Notes and notes issued pursuant to the Secured Loan (collectively, “Notes”) as of March 31, 2017 (in thousands): 3.50% 3.50% Secured Convertible Series A Loan Notes Convertible Notes Total Principal amount of the Notes $ $ $ $ Unamortized debt costs ) ) — ) Unamortized debt discount ) — ) ) Net carrying amount $ $ $ $ The net carrying amount of the equity conversion component related to the 3.5% Series A Convertible Note was approximately $7.8 million at March 31, 2017. The fair value of the Company’s 3.50% Convertible Notes was $48.8 million and $51.5 million at March 31, 2017 and June 30, 2016, respectively. The fair value of the Company’s 3.50% Series A Convertible Notes was $76.9 million and $81.1 million at March 31, 2017 and June 30, 2016, respectively. These borrowings are valued based on the closing trading price per $100 of the Convertible Notes as of the last day of trading for the period and are classified as Level 2 within the fair value hierarchy. The carrying value of the Company’s Secured Loan approximates its estimated fair value as these borrowings have a variable rate structure that is based on a market observable interest rate that resets periodically. The Secured Loan is classified as Level 2 within the fair value hierarchy. A summary of interest expense on the Notes is as follows (in thousands): Three Months Ended Nine Months Ended March 31, March 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 $ $ $ $ |