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 $ 6,185 $ 11,506
Adjustments to reconcile net income to net cash provided by operating activities:    
Depreciation and amortization 7,894 3,278
Non-cash interest expense 2,089 1,956
Stock-based compensation expense 4,893 3,027
Deferred tax expense 325 (5,384)
Loss on conversion of convertible senior notes 1  
Loss on disposal of assets   64
Changes in assets and liabilities:    
Accounts receivable (4,788) (6,347)
Other receivables 60 226
Inventories (3,096) (813)
Prepaid expenses and other current assets (144) (236)
Other assets (1,241) (754)
Accounts payable (701) 1,740
Accrued liabilities (3,985) (4,216)
Long-term liabilities 43 (86)
Net cash provided by operating activities 7,535 3,961
Cash flows from investing activities:    
Purchases of marketable securities   (42)
Redemptions of marketable securities   16,850
Purchases of property, plant and equipment (4,412) (2,676)
Net cash (used in) provided by investing activities (4,412) 14,132
Cash flows from financing activities:    
Exercise of stock options 1,490 1,505
Repayment of senior convertible notes (11)  
Payment of contingent consideration   (1,677)
Net cash provided by (used in) financing activities 1,479 (172)
Effect of exchange rate changes on cash and cash equivalents (2,750) 2,053
Net increase (decrease) in cash and cash equivalents 1,852 19,974
Cash, cash equivalents and restricted cash, beginning of period 173,759 122,683
Cash, cash equivalents and restricted cash, end of period 175,611 142,657
Supplemental disclosure of non-cash activities:    
Income taxes paid 1,458 2,150
Non-cash effect of adoption of ASU 2016-16 $ 5,609  
Payment of contingent consideration in common stock   $ 1,062