XML 17 R6.htm IDEA: XBRL DOCUMENT v3.10.0.1
Consolidated Statements of Cash Flows (unaudited) - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2018
Jun. 30, 2017
Cash flows from operating activities    
Net loss $ (28,782) $ (46,532)
Adjustments to reconcile net loss to net cash used in operating activities:    
Depreciation and amortization 12,243 1,448
Change in valuation of warrant liability 0 3
Non-cash interest expense 3,644 3,274
Loss on disposal of asset 0 47
Amortization of premiums and accretion of discounts on investments, net (230) 365
Amortization of debt issuance costs 256 185
Share-based compensation expense 15,831 16,914
Unrealized foreign currency transaction (gains) losses, net (764) 1,648
Changes in operating assets and liabilities:    
Inventory (3,393) (2,806)
Prepaid expenses and other current assets 254 (416)
Trade receivables, net (20,429) (6,762)
Deposits and other assets (419) (463)
Accounts payable and accrued expenses 2,225 12,452
Other liabilities 485 457
Deferred revenue 3,204 4,604
Net cash used in operating activities (15,875) (15,582)
Cash flows from investing activities    
Purchases of fixed assets (1,187) (579)
Purchases of marketable securities (28,656) (19,467)
Sale and redemption of marketable securities 35,939 144,357
Acquisition, including transaction costs 0 (76,424)
Net cash provided by investing activities 6,096 47,887
Cash flows from financing activities    
Proceeds from exercise of options 3,592 535
Net proceeds from public offerings 117,874 0
Proceeds from shares issued under employee stock purchase plan 1,299 557
Debt issuance costs related to secured term loan 0 (432)
Proceeds from issuance of secured term loan 0 40,000
Net cash provided by financing activities 122,765 40,660
Effect of exchange rate changes on cash (990) 1,725
Net increase in cash and cash equivalents 111,996 74,690
Cash and cash equivalents, beginning of period 111,792 58,321
Cash and cash equivalents, end of period 223,788 133,011
Supplemental disclosure of cash information    
Cash paid for interest 3,838 2,474
Cash paid for income taxes $ 758 $ 334