XML 201 R8.htm IDEA: XBRL DOCUMENT v3.22.0.1
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Operating activities:      
Net (loss) income $ (50,674) $ 37,954 $ 31,623
Adjustments to reconcile net (loss) income to net cash provided by operating activities:      
Depreciation, depletion and accretion of asset retirement obligation 25,308 22,130 26,425
Inventory impairment loss 2,170 0 0
Impairment loss 0 5,115 15,542
Amortization of intangible assets 795 793 1,394
Asset retirement obligation settlement 0 0 (2,753)
Loss (gain) on disposal of assets 555 237 (42)
Loss on extinguishment of debt 0 0 561
Bad debt expense 19,592 0 0
Amortization of deferred financing cost 105 105 212
Accretion of debt discount 183 185 649
Deferred income taxes (10,547) (2,573) 6,123
Stock-based compensation, net 3,161 3,831 2,909
Employee stock purchase plan compensation 34 34 41
Change in contingent consideration fair value 0 (1,410) (3,272)
Interest expense, net 0 39,291 0
Changes in assets and liabilities:      
Accounts receivable 32,899 (10,719) (41,063)
Unbilled receivables (2,011) 4,638 3,058
Inventory 1,942 4,738 (1,021)
Prepaid expenses and other assets 751 (5,327) 1,879
Deferred revenue 5,913 1,032 5,229
Accounts payable 4,508 (370) (4,680)
Accrued and other expenses (2,246) 4,981 1,277
Income taxes payable 0 (542) 542
Net cash provided by operating activities 32,438 25,541 44,632
Investing activities:      
Purchases of property, plant and equipment (11,220) (8,620) (25,525)
Proceeds from disposal of assets 78 61 100
Net cash used in investing activities (11,142) (8,559) (25,425)
Financing activities:      
Proceeds from the issuance of notes payable 0 952 31,202
Repayments of notes payable (6,770) (4,802) (2,808)
Payments under equipment financing obligations (123) (123) (103)
Payment of deferred financing and debt issuance costs 0 (20) (2,262)
Proceeds from revolving credit facility 0 6,000 52,750
Repayment of revolving credit facility 0 (8,500) (94,750)
Payment of contingent consideration (180) (310) (1,995)
Proceeds from equity issuance 42 62 71
Purchase of treasury stock (402) (1,155) (140)
Net cash used in financing activities (7,433) (7,896) (18,035)
Net increase in cash and cash equivalents 13,863 9,086 1,173
Cash and cash equivalents at beginning of year 11,725 2,639 1,466
Cash and cash equivalents at end of year $ 25,588 $ 11,725 $ 2,639