XML 16 R5.htm IDEA: XBRL DOCUMENT v3.10.0.1
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2018
Jun. 30, 2017
Cash flows from operating activities    
Net Income (Loss) $ (54,781) $ (34,972)
Adjustments to reconcile net income (loss) to net cash provided by (used in) operating activities:    
Depreciation and amortization 7,428 10,113
Write-off and amortization of debt issuance costs 556 1,383
Share-based compensation expense 987 1,460
Provision for doubtful accounts 12,468 2,893
Gain on disposal of property and equipment (28) (23)
Gain on extinguishment of convertible senior notes   (114)
Change in fair value of convertible senior notes 3,431  
Changes in operating assets and liabilities:    
Accounts receivable 29,710 60,229
Inventory (3,729) (5,785)
Prepaid expenses and other assets (19,840) (12,336)
Accounts payable 18,497 15,322
Accrued expenses (6,675) (16,255)
Reserve for sales returns and allowances 3,713 (7,368)
Income taxes payable (267) (1,043)
Other liabilities (190) (265)
Total adjustments 46,061 48,211
Net cash provided by (used in) operating activities (8,720) 13,239
Cash flows from investing activities    
Purchases of property and equipment (6,510) (7,611)
Proceeds from sale of property and equipment   24
Net cash provided by (used in) investing activities (6,510) (7,587)
Cash flows from financing activities    
Repurchase of convertible senior notes   (35,614)
Proceeds from issuance of common stock   19,311
Repayment of credit facility borrowings (5,000) (10,000)
Proceeds from term loan facility 20,000  
Deferred issuance costs (1,447)  
Repurchase of common stock for employee tax withholding (85) (12)
Net cash provided by (used in) financing activities 13,468 (26,315)
Net increase (decrease) in cash, cash equivalents and restricted cash (1,762) (20,663)
Effect of foreign currency translation (224) 2,197
Cash, cash equivalents and restricted cash, beginning of period 64,977 86,064
Cash, cash equivalents and restricted cash, end of period 62,991 67,598
Cash paid during the period for:    
Income taxes 712 1,598
Interest $ 3,592 $ 4,793