XML 18 R5.htm IDEA: XBRL DOCUMENT v3.7.0.1
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2017
Jun. 30, 2016
Cash flows from operating activities:    
Net loss $ (37,606) $ (114,507)
Adjustments to reconcile net loss to net cash used in operating activities:    
Bad debt expense (89) 0
Depreciation and amortization 4,645 4,229
Stock-based compensation 6,188 6,768
Change in fair value of derivative liabilities 0 43,831
Change in fair value of contingent consideration related to acquisition (2,600) 100
Accretion of interest & amortization of deferred financing costs on debt 5,004 4,603
Non-cash foreign exchange loss (gain) (206) 810
Non-cash loss on debt extinguishment 3,997 0
Changes in operating assets and liabilities:    
Restricted cash (876) 0
Accounts receivable and other receivables 3,470 (2,445)
Inventories (2,174) 3,557
Prepaid expenses and other current assets (762) 1,100
Accounts payable (3,486) (5,812)
Accrued payroll (3,220) 6,922
Accrued expenses and other liabilities (1,092) 1,889
Net cash used in operating activities (28,807) (48,955)
Cash flows from investing activities:    
Purchases of marketable securities 0 (5,017)
Maturities of marketable securities 11,000 19,350
Purchases of property and equipment (833) (1,304)
Acquisition of business, net of cash acquired of $0 and $24,012, respectively 0 (60,622)
Net cash (used in) provided by investing activities 10,167 (47,593)
Cash flows from financing activities:    
Net proceeds from revolving line of credit 24,297 0
Deferred financing costs (6,285) 0
Proceeds from sale of common stock under employee stock purchase plan 1,681 1,826
Proceeds from exercise of stock options 449 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 73,529 3,469
Effect of exchange rate changes on cash and cash equivalents 632 (26)
Net (decrease) in cash and cash equivalents 55,521 (93,105)
Cash and cash equivalents, beginning of period 26,120 124,553
Cash and cash equivalents, end of period 81,641 31,448
Supplemental disclosure of cash flow information:    
Cash paid for interest 2,956 2,994
Cash paid for income taxes 565 167
Non-cash investing and financing activities:    
Acquisition of property and equipment included in accounts payable 26 0
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