Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Cash flows from operating activities      
Net loss $ (22,572) $ (85,378) $ (11,521)
Adjustments to reconcile net loss to net cash provided by operating activities:      
Depreciation and amortization 73,938 85,722 91,474
Accretion of contract rights under development agreements and placement fees 6,516 7,421 6,378
Amortization of deferred loan costs and discount 4,677 3,656 1,917
Stock-based compensation expense 14,643 8,457 9,001
Provision for bad debts 235 2,694 294
Loss on disposition of long-lived assets 590 2,399 1,068
Impairment of assets 2,257 134 5,343
Fair value adjustment of contingent consideration (56) 796 501
Benefit from deferred income tax (175) (1,671) (1,927)
Changes in assets and liabilities related to operations:      
Accounts receivable (8,133) 16,469 (15,033)
Inventories 1,577 10,099 490
Prepaid expenses (1,332) (1,264) 715
Deposits and other (3,516) 517 (449)
Other assets, non-current 3,789 3,367 6,565
Accounts payable and accrued liabilities 5,894 (17,248) (6,827)
Net cash provided by operating activities 78,332 36,170 87,989
Cash flows from investing activities      
Issuance of customer notes receivable 0 (4,690) (2,382)
Proceeds from payments on customer notes receivable 1,362 1,087 0
Business acquisitions, net of cash acquired 0 0 (54,935)
Purchase of intangible assets 0 (1,756) (6,295)
Software development and other expenditures (15,432) (11,017) (14,350)
Proceeds from disposition of assets 35 32 450
Purchases of property and equipment (36,102) (22,939) (50,420)
Net cash used in investing activities (50,137) (39,283) (127,932)
Cash flows from financing activities      
Borrowing on revolver 0 30,000 0
Repayment of revolver 0 (30,000) 0
Payments on finance leases and other obligations (1,321) (1,185) (1,396)
Payment of deferred loan costs (848) (5,744) 0
Payment of financed placement fee obligations (4,959) (6,933) (8,215)
Payment of previous acquisition obligation (534) (381) (1,748)
Proceeds from stock option exercise 0 158 685
Repurchase of stock (906) (560) (1,320)
Distributions to non-controlling interest owners 0 0 (302)
Net cash (used in) provided by financing activities (14,905) 71,643 (17,683)
Effect of exchange rates on cash, cash equivalents and restricted cash (2) (3) 4
Net Increase (decrease) in cash, cash equivalents and restricted cash 13,288 68,527 (57,622)
Cash, cash equivalents and restricted cash, beginning of period 81,709 13,182 70,804
Cash, cash equivalents and restricted cash, end of period 94,997 81,709 13,182
Supplemental cash flow information:      
Cash paid during the period for interest 39,268 37,749 33,567
Cash paid during the period for taxes 544 423 1,548
Non-cash investing and financing activities:      
Intangible assets obtained under placement fee arrangements 0 0 40,338
Leased assets obtained in exchange for new finance lease liabilities 317 425 1,326
Leased assets obtained in exchange for new operating lease liabilities 4,686 84 13,048
Incremental Term Loans [Member]      
Cash flows from financing activities      
Proceeds from incremental term loans 0 92,150 0
Repayment of long-term debt (950) (475) 0
First Lien Credit Facilities [Member]      
Cash flows from financing activities      
Repayment of long-term debt $ (5,387) $ (5,387) $ (5,387)