Long-term debt | Note 8. Long-term debt Long-term debt at the indicated dates consists of the following: June 30, December 31, 2019 2018 (in thousands) Deerfield senior secured credit facility, net of discount of $2,639 and $3,334, respectively $ 43,111 $ 49,916 Financing and capital leases, maturing through May 2024 1,750 1,858 44,861 51,774 Less current portion (16,372) (8,557) Long-term debt $ 28,489 $ 43,217 Senior secured credit facility : On May 11, 2016, the Company entered into a $60.0 million senior secured credit facility (the “Facility”) with Deerfield Private Design Fund III, L.P. (66 2/3% of Facility) and Deerfield Special Situations Fund, L.P. (33 1/3% of Facility) (collectively, “Deerfield”), as lenders. In February 2017, the Company closed an underwritten public offering of 5,750,000 shares of its common stock at a public offering price of $5.00 per share (see Note 10). Deerfield, the Company’s senior lender, participated in the purchase of the Company’s common shares as part of this public offering, and as a result, was classified as a related party at the time of the corresponding transactions. Principal on the Facility was due in three equal annual installments beginning in May 2019 and continuing through May 2021, with a final payment of principal, interest and all other obligations under the Facility due May 11, 2022. Interest is due quarterly beginning in June 2016, at a rate of 12.95% per year. The Company had an option, which it exercised, to defer payment of each of the first four interest payments, adding such amounts to the outstanding loan principal. The aggregate $6.6 million in deferred interest payments (the “Accrued Interest”) was due and payable on June 1, 2017. Borrowings under the Facility are collateralized by substantially all of the Company’s assets, except the assets under capital lease. The terms of the Facility require the Company to maintain cash on deposit of not less than $5.0 million. On June 1, 2017 (the “Amendment Date”), the Company and Deerfield entered into a First Amendment (the “Amendment”) to the Facility which extended the date to repay the Accrued Interest under the Facility to June 1, 2018 (the “PIK Maturity Date”), which could have been extended to June 1, 2019 at the election of the Company if certain conditions had been met as specified in the Amendment. However, as described below, the accrued interest amount was converted into shares of common stock. The right to payment of the Accrued Interest was memorialized in the form of senior secured convertible notes (the “Convertible Notes”) issued to Deerfield on the Amendment Date. Interest was due quarterly at a rate of 12.95% per year. The principal amount of the Convertible Notes issued under the Amendment and all accrued and unpaid interest thereon was to become due and payable upon written notice from Deerfield, and if either (a) the Company did not meet certain quarterly sales milestones specified in the Amendment or (b) the Company had not received and publicly announced FDA approval of the new drug applications on or before the applicable Prescription Drug User Fee Act goal date as set forth on the schedules to the Amendment. Per the Amendment, the Company will prepay all of the outstanding obligations under the Facility and the Convertible Notes upon the occurrence of a change in control or a sale of substantially all of the Company’s assets and liabilities. The Amendment increased the staggered prepayment fees for prepayments due upon a change of control or any other prepayment made or required to be made by the Company by 300 basis points from June 1, 2017 through the period ending prior to May 11, 2020 for the change in control prepayment fees and through the period ending prior to May 11, 2022 for any other prepayments, respectively (the “Prepayment Premiums”). Such Prepayment Premiums, as amended, ranged from 12.75% to 2%. The $6.6 million of Convertible Notes was convertible into shares of the Company’s common stock at the noteholder’s option at any time up to the close of business on the date that was five days prior to the PIK Maturity Date. The per share conversion price was the greater of (a) 95% of the average of the volume weighted average prices per share of the Company’s common stock on the NASDAQ Global Market for the three trading day period immediately preceding such conversion, and (b) $7.00. Deerfield cannot own more than 9.985% of the Company’s outstanding shares at any one time, and the aggregate conversion cannot exceed 19.9% of the Company’s outstanding common stock as of June 1, 2017. On October 26, 2017, Deerfield provided a conversion notice electing to convert the entire $6.6 million of Convertible Notes into shares of the Company’s common stock at a conversion price of $7.08 per share. The conversion price was based on 95% of the average of the volume weighted average prices per share of the Company’s common stock on the NASDAQ Global Market for the three trading day period immediately preceding such conversion. This resulted in issuing 929,967 shares of the Company’s common stock to Deerfield on this date and the Convertible Notes were cancelled. The Company has filed a registration statement with the SEC covering the registration of these shares, as noted below. In conjunction with the Amendment to the Facility and the related issuance of the Convertible Notes, the Company entered into a Registration Rights Agreement (the “Registration Agreement”) which required the Company to file a registration statement with the SEC to register the shares of common stock issued or issuable upon conversion of the Convertible Notes (the “Conversion Shares”) (subject to certain adjustment for stock split, dividend or other distribution, recapitalization or similar events, the “Registrable Securities”) within 30 days from June 1, 2017, which was to become effective per the SEC no later than 75 days thereafter. The Company filed a registration statement on Form S-3 to comply with the Registration Agreement on June 30, 2017, which became effective on July 11, 2017. This filing covered 940,924 shares, which is the number of shares that would be issued at the floor conversion rate of $7.00 per share. The Company was also required to, among other things, maintain the effectiveness of such registration statement, continue to file the required SEC filings on a timely basis, use its best efforts to ensure that the registered securities are listed on each securities exchange on which securities of the same class or series as issued by the Company are then listed and comply with any Financial Industry Regulatory Authority (“FINRA”) requests. The Company’s obligations with respect to each registration end at the date which was the earlier of (a) when all of the Registrable Securities covered by such registration have been sold or (b) when Deerfield or any of its transferees or assignees under the Registration Agreement cease to hold any Registrable Securities. For each registration, the Company bore all reasonable expenses, other than underwriting discounts and commissions, and was to reimburse Deerfield or any assignee or transferee for up to $25,000 in legal fees. The Company had satisfied all of its obligations under this Registration Agreement and did not pay any damages pursuant to this agreement; therefore, no liability had been recorded (see Note 13), and as of September 30, 2018, Deerfield or any of its transferees or assignees under the Registration Agreement reported that it had ceased to hold any Registrable Securities. The Company has accounted for the Amendment as a debt modification as the instruments were not substantially different; therefore, the remaining debt discount on the original Facility is being amortized using the effective interest method over the remaining term of the modified debt. The Company evaluated the Amendment together with the Convertible Notes to determine if those contracts or embedded components of those contracts qualified as derivatives requiring separate recognition. This evaluation identified a derivative liability of $2.1 million for the fair value of the change in control and other accelerated payment features as the prepayment fees resulted in premiums that were greater than 10%. As of June 30, 2019, the fair value of the derivative was $1.4 million (see Note 4). As the change in control and other accelerated payments terms, including the prepayment fees, were applied to the entire debt per the terms of the amended Facility, the corresponding debt discount will be amortized using the effective interest method over the remaining term of the Facility. The fees paid to or on behalf of the creditor for the debt modification totaled $40,000 and were recorded as additional debt discount on the amended Facility to be amortized to interest expense using the effective interest method over the term of the Facility. The Company’s evaluation also determined that the embedded conversion options should not be bifurcated as derivatives from the Convertible Notes host instruments. Therefore, the Company recorded a $0.6 million discount to the convertible notes for the intrinsic value of the embedded conversion option based upon the difference between the fair value of the underlying common stock on June 1, 2017 and the effective conversion price embedded in the Convertible Notes, which was amortized using the effective interest method to interest expense over the one-year term of the Convertible Notes. The Company recorded a $0.6 million corresponding credit to a beneficial conversion feature classified as additional paid in capital on June 1, 2017 in stockholders’ equity (deficit) in the Company’s financial statements. In connection with the Facility, the Company paid a $1,350,000 yield enhancement fee to Deerfield, approximately $173,000 of legal costs to the Company’s attorneys and $58,000 of legal costs on behalf of Deerfield’s attorneys, all of which were recorded as debt discount and amortized over the six-year term of the Facility, using the effective interest method. On November 5, 2018, the Company and Deerfield entered into an amendment (the “Second Amendment”) to the Facility pursuant to which the Company agreed to pay $7.5 million of principal under the Facility otherwise due in May 2019 upon completion of an underwritten public offering of the Company’s shares of its common stock for gross proceeds of at least $30.0 million, plus additional shares of the Company’s shares of its common stock for additional gross proceeds of at least $4.5 million (the “November Offering”). The remaining $52.5 million of principal under the Facility is due as follows: $7.5 million on May 11, 2019, $15.0 million on May 11, 2020 (the “2020 Principal Payment”), $15.0 million on May 11, 2021 and $15.0 million on May 11, 2022; provided, that the 2020 Principal Payment due date shall be extended to May 11, 2021 or May 11, 2022 subject to certain achievement of net sales during periods ending 2019 and 2020, respectively. If all or any of the principal are prepaid or required to be prepaid under the Second Agreement prior to December 31, 2021, then the Company shall pay, in addition to such prepayment and accrued interest thereon, a prepayment premium equal to 6.25% of the amount of principal prepaid. Additionally, the Company shall pay all interest which, absent such prepayment, would have accrued on the principal prepaid through May 11, 2020 in connection with a prepayment due to a Change of Control of the Company or through December 31, 2020 in connection with any other prepayment, whether voluntary or in an Event of Default. If such prepayment occurs after December 31, 2021 then no prepayment premium is due. In addition, upon the payment in full of the Obligations (whether voluntarily, in the connection with a Change of Control or an Event of Default and whether before, at the time of or after the Maturity Date,) the Company shall pay to Deerfield a non-refundable exit fee in the amount of $750,239, which shall be due and payable in cash. Pursuant to the terms of the Facility, as amended, a $7.5 million principal payment was paid in cash in May 2019 and, the remaining principal outstanding as of June 30, 2019 is $45.0 million. Pursuant to the Second Amendment, upon the effectiveness thereof, the Company amended and restated its outstanding notes under the Second Agreement in the form of senior secured convertible notes (the “A&R Notes”). Under the terms of the Second Amendment and the A&R Notes, beginning on or about May 11, 2019, the Company has the right to pay principal and future interest in shares of Common Stock not to exceed 2,135,625 shares in the aggregate. The payment share price will be 93% of the lesser of (A) the Last Bid Price prior to the payment date and (B) the arithmetic average of the volume weighted average price on each of the ten consecutive trading days immediately preceding the payment date. Principal may not be satisfied at a price less than $3.00 per share, and the Company may not issue to Deerfield a number of shares upon any such payment to the extent that, upon such issuance, the number of shares beneficially owned by Deerfield and its affiliates would exceed 4.985% of the total number of shares of the Company’s common stock then issued and outstanding (the “4.985% Cap”). Additionally, Deerfield has the right to convert the remaining principal into shares of Common Stock not to exceed 3,796,668 shares in the aggregate (collectively, the “Conversion Shares”); provided, that the Lenders may only convert up to 50% of the remaining principal on or before November 5, 2019. Deerfield’s per share conversion price will be 95% reducing to a maximum 83% by one full percentage point for each full or partial calendar month between the date of the applicable conversion and the date on which such principal payment would otherwise be due, of the greater of (A) the average of the volume weighted average prices per share of the Common Stock on the NASDAQ Global Market for the three trading day period immediately preceding such conversion, and (B) $10.00 (subject to adjustment for Stock Events e.g. stock dividend, stock split etc.). Deerfield may not acquire a number of shares upon any such conversion to the extent that, upon such conversion, the number of shares beneficially owned by Deerfield and its affiliates would exceed the 4.985% Cap. In conjunction with the Second Amendment to the Facility and the related issuance of the A&R Notes, the Company entered into a Registration Rights Agreement (the “Second Registration Agreement”) pursuant to which the Company was required to file a registration statement with the SEC to register the Conversion Shares within 30 days from November 5, 2018, which was to become effective per the SEC no later than 75 days thereafter. The filing deadline was subsequently extended to December 21, 2018. The Company filed a registration statement on Form S-3 to comply with the Second Registration Agreement on December 11, 2018, which became effective on December 20, 2018. This filing covered 3,796,668 shares, which is the maximum number of shares that may be converted. The Company is also required to, among other things, maintain the effectiveness of such registration statement, continue to file the required SEC filings on a timely basis, use its best efforts to ensure that the registered securities are listed on each securities exchange on which securities of the same class or series as issued by the Company are then listed and comply with any FINRA requests. The Company’s obligations with respect to each registration end at the date which is the earlier of (a) when all of the Registrable Securities covered by such registration have been sold or (b) when Deerfield or any of its transferees or assignees under the Second Registration Agreement cease to hold any Registrable Securities. For each registration, the Company shall bear all reasonable expenses, other than underwriting discounts and commissions, and shall reimburse Deerfield or any assignee or transferee for up to $25,000 in legal fees. The Company expects to satisfy all of its obligations under the Second Registration Agreement and did not expect to pay any damages pursuant to this agreement; therefore, no liability had been recorded (see Note 13). Pursuant to the A&R Notes, if the Company fails to provide the number of Conversion Shares, then the Company would have to pay damages to Deerfield or subsequent holder or any designee for each day after the third business day after receipt of notice of conversion that such conversion is not timely effected. The Facility also contains certain customary nonfinancial covenants, including limitations on the Company’s ability to transfer assets, engage in a change of control, merge or acquire with or into another entity, incur additional indebtedness and distribute assets to shareholders. Upon an event of default, the lenders may declare all outstanding obligations accrued under the Facility to be immediately due and payable, and exercise its security interests and other rights. As of June 30, 2019, the Company was in compliance with the covenants under the Facility. Debt discount amortization for the Facility, including the Amendment after June 1, 2017, was calculated using the effective interest rates of 15.03% on the original facility debt, 25.35% on the Convertible Notes and after the Second Amendment on November 5, 2018, using the effective interest rate of 16.69%, charged to interest expense and totaled $339,000 and $696,000 for the three and six months ended June 30, 2019, respectively, and $218,000 and $427,000 for the three and six months ended June 30, 2018, respectively. Financing and capital lease obligations: Financing and capital lease obligations consist of sale-leaseback and equipment leases, both of which include options to purchase and was classified as finance lease as of June 30, 2019 and capital lease as of December 31, 2018. As described in Note 6, during the year ended December 31, 2017, the Company entered into an agreement with Essex for the sale-leaseback of newly acquired assets with a total capitalized cost of $3.2 million. The approximate imputed interest rate on these leases is 14.9% . In addition, during the year ended December 31, 2018 and the quarter ended June 30, 2019, the Company entered into equipment leases with a total capitalized cost of $0.1 million and $0.4 million, respectively. The approximate interest rate on these leases is 5.3% and 6.5%, respectively. Interest expense on these leases was $58,000 and $122,000 for the three and six months ended June 30, 2019, respectively, and $91,000 and $189,000 for the three and six months ended June 30, 2018, respectively. Future principal payments of long-term debt including financing leases are as follows: Period ending: June 30, (in thousands) 2020 $ 16,372 2021 15,096 2022 15,852 2023 96 Thereafter 84 Future principal payments $ 47,500 Less unamortized debt discount related to long-term debt (2,639) Less current portion of long-term debt (16,372) Total long-term debt, net of current portion $ 28,489 |