XML 17 R6.htm IDEA: XBRL DOCUMENT v3.20.2
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2020
Jun. 30, 2019
Cash flows from operating activities    
Net Income $ 23,655 $ 3,284
Adjustments for:    
Depreciation 4,320 2,739
Change in allowance for doubtful accounts 5,578 3,859
Share-based compensation 2,347 1,914
Unrealized loss on warrant conversion liability 0 437
(Gain) loss on equity investment (15) 51
(Gain) loss on disposal of property and equipment (2,627) 141
Deferred income taxes (benefit) (7,825) 0
Net change in working capital    
Increase in accounts receivable (5,073) (7,818)
Increase in inventory (5,220) (825)
Increase in prepaid expenses and other current assets (329) (109)
Increase in trade payables 2,044 1,934
(Decrease) increase in deferred revenue (36) 690
Increase (decrease) in accrued liabilities 3,765 (181)
Increase (decrease) in income tax payable 1,404 (153)
Net cash provided by operating activities 21,988 5,963
Cash flows from investing activities    
Purchase of property and equipment (5,729) (7,700)
Investment in equity method investment (31) 0
Proceeds from sale of property and equipment 5,140 213
Net cash used in investing activities (620) (7,487)
Cash flows from financing activities    
Proceeds from exercise of options 1,772 22
Proceeds from exercise of warrants 0 16
(Principal payments) proceeds on notes payable (67)  
(Principal payments) proceeds on notes payable   4,837
Principal payments on term note (795) 0
Shares repurchased and canceled under the Normal Course Issuer Bid 0 (1,522)
Repayments of lease liabilities, net of proceeds (5,926) (4,551)
Net cash used in financing activities (5,016) (1,198)
Net increase (decrease) in cash and cash equivalents 16,352 (2,722)
Cash and cash equivalents at beginning of year 13,355 10,413
Cash and cash equivalents at end of period 29,707 7,691
Supplemental disclosures of cash flow information    
Cash paid during the period for interest 309 52
Cash paid during the period for income taxes, net of refunds received (38) 317
Supplemental disclosures of non-cash transactions    
Property and equipment financed through finance leases 2,883 9,438
Property and equipment financed through leases under FASB ASC 842 $ 57 $ 1,919