XML 21 R7.htm IDEA: XBRL DOCUMENT v3.6.0.2
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2016
Dec. 31, 2015
Dec. 31, 2014
Cash flows from operating activities:      
Net income (loss) $ 13,842 $ 7,682 $ (6,648)
Adjustments to reconcile net income (loss) to net cash provided by (used in) operating activities:      
Loss on disposal of property and equipment   185 128
Depreciation and amortization 12,897 11,416 7,441
Amortization of debt discount 3,018 3,016  
Amortization of debt issuance costs 1,663 1,303 715
Loss on extinguishment of debt 4,487   2,946
Share-based compensation expense 9,902    
Loss on investment in joint venture 2 2 6
Amortization of discount on customer advances     218
Deferred income taxes (2,782) (765) (1,018)
Changes in assets and liabilities:      
Accounts receivable 5,071 (29,652) (31,677)
Inventories (4,967) (626) (60,320)
Prepaid expenses and other current assets 681 (10,978) (9,225)
Other noncurrent assets (8,291) 4,204 2,021
Accounts payable and accrued expenses 14,959 34,423 26,050
Accrued warranty 6,316 7,680 2,180
Customer deposits (7,515) (3,193) 1,047
Deferred revenue 4,048 6,044 38,322
Other noncurrent liabilities 510 552 (5,403)
Net cash provided by (used in) operating activities 53,841 31,293 (33,217)
Cash flows from investing activities:      
Purchases of property and equipment (30,507) (26,361) (18,924)
Proceeds from sale of assets   146  
Net cash used in investing activities (30,507) (26,215) (18,924)
Cash flows from financing activities:      
Proceeds from issuance of common stock sold in initial public offering, net of underwriters discount and offering costs 67,199    
Proceeds from issuance of preferred stock     6,846
Proceeds from term loans   20,000 23,901
Repayments of term loans (930) (625)  
Net proceeds from (repayments of) accounts receivable financing (5,385) (2,472) 34,450
Proceeds from working capital loans 15,813 11,690 19,120
Repayments of working capital loans (20,103) (24,262) (13,121)
Proceeds from subordinated debt arrangements     15,000
Proceeds from (repayments of) other financing arrangements (4,765) (2,777) (2,130)
Proceeds from customer advances 2,000   4,500
Repayments of customer advances (2,000)    
Debt issuance costs   (1,113) (4,818)
Payment on acquisition of noncontrolling interest   (1,875) (1,625)
Restricted cash (499) (989) 1,898
Net cash provided by (used in) financing activities 51,330 (2,423) 84,021
Impact of foreign exchange rates on cash and cash equivalents (1,515) (330) (43)
Net change in cash and cash equivalents 73,149 2,325 31,837
Cash and cash equivalents, beginning of year 45,917 43,592 11,755
Cash and cash equivalents, end of year 119,066 45,917 43,592
Supplemental disclosures of cash flow information:      
Cash paid for interest 11,126 9,439 6,343
Cash paid for income taxes, net 8,506 3,087 547
Supplemental disclosures of noncash investing and financing activities:      
Accrued capital expenditures in accounts payable 2,664 1,860 1,980
Equipment acquired through capital lease and financing obligations 10,011 5,004 7,381
Customer advances applied to accounts receivable   $ 1,171 2,753
Debt refinance and related fees 2,163   $ 36,099
Conversion of subordinated convertible promissory notes into common stock $ 11,877