XML 18 R5.htm IDEA: XBRL DOCUMENT v3.8.0.1
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2017
Sep. 30, 2016
Cash flows from operating activities:    
Net loss $ (51,879) $ (129,752)
Adjustments to reconcile net loss to net cash used in operating activities:    
Bad debt expense (97) 383
Depreciation and amortization 6,933 6,566
Stock-based compensation 8,800 9,641
Change in fair value of derivative liabilities 0 43,831
Change in fair value of contingent consideration related to acquisition (3,400) 100
Accretion of interest & amortization of deferred financing costs on debt 7,558 7,037
Non-cash foreign exchange (gain) loss (560) 838
Non-cash loss on debt extinguishment 3,997 0
Changes in operating assets and liabilities:    
Restricted cash (368) (2,001)
Accounts receivable and other receivables 2,859 (3,883)
Inventories (1,048) 2,083
Prepaid expenses and other current assets (237) 535
Accounts payable (3,447) (6,607)
Accrued payroll (3,225) 7,660
Accrued expenses and other liabilities (2,509) 3,498
Net cash used in operating activities (36,623) (60,071)
Cash flows from investing activities:    
Purchases of marketable securities 0 (20,976)
Maturities of marketable securities 21,000 37,850
Purchases of property and equipment (876) (2,051)
Acquisition of business, net of cash acquired of $0 and $24,012, respectively 0 (60,622)
Net cash provided by (used in) investing activities 20,124 (45,799)
Cash flows from financing activities:    
Net proceeds from revolving line of credit 15,441 0
Deferred financing costs (6,755) (917)
Proceeds from sale of common stock under employee stock purchase plan 1,681 2,520
Proceeds from exercise of stock options 482 1,777
Proceeds from issuance of debt 120,000 0
Repayment of debt (66,613) 0
Minimum tax withholding paid on behalf of employees for restricted stock units 0 (134)
Net cash provided by financing activities 64,236 3,246
Effect of exchange rate changes on cash and cash equivalents 762 93
Net increase (decrease) in cash and cash equivalents 48,499 (102,531)
Cash and cash equivalents, beginning of period 26,120 124,553
Cash and cash equivalents, end of period 74,619 22,022
Supplemental disclosure of cash flow information:    
Cash paid for interest 7,447 3,088
Cash paid for income taxes 672 214
Non-cash investing and financing activities:    
Acquisition of property and equipment included in accounts payable 176 64
Fair value of common stock issued for business acquisition 0 100,812
Fair value of warrants issued for business acquisition 0 44
Fair value of warrants issued in connection with the Facility Agreement $ 14,704 $ 0