| | | |
| 2017 | 2016 | 2015 |
Cash and Cash Equivalents, Beginning of period | $ 19,334 | $ 15,890 | $ 14,557 |
Opertating activities | | | |
Net income (loss) | $ 3,033 | $ 2,371 | $ 596 |
Depreciation of property and equipment, including internal-use software and website development, and other amortization, including capitalized content costs | $ 11,478 | $ 8,116 | $ 6,281 |
Stock-based compensation | $ 4,215 | $ 2,975 | $ 2,119 |
Other operating expense, net | $ 202 | $ 160 | $ 155 |
Other (income) expense, net | $ (292) | $ (20) | $ 250 |
Deferred income taxes | $ (29) | $ (246) | $ 81 |
Excess tax benefits from stock-based compensation | | $ (829) | $ (119) |
Inventories | $ (3,583) | $ (1,426) | $ (2,187) |
Accounts receivable, net and other | $ (4,786) | $ (3,367) | $ (1,755) |
Accounts payable | $ 7,175 | $ 5,030 | $ 4,294 |
Accrued expenses and other | $ 283 | $ 1,724 | $ 913 |
Unearned revenue | $ 738 | $ 1,955 | $ 1,292 |
Changes in operating assets and liabilities | $ (173) | $ 3,916 | $ 2,557 |
Adjustments to reconcile net income (loss) to net cash from operating activities | $ 15,401 | $ 14,072 | $ 11,324 |
Net cash provided by operating activities | $ 18,434 | $ 16,443 | $ 11,920 |
Purchases of property and equipment, including internal-use software and website development, net | $ (11,955) | $ (7,804) | $ (5,387) |
Proceeds from property and equipment incentives | $ 1,897 | $ 1,067 | $ 798 |
Acquisitions, net of cash acquired, and other | $ (13,972) | $ (116) | $ (795) |
Sales and maturities of marketable securities | $ 9,988 | $ 4,733 | $ 3,025 |
Purchases of marketable securities | $ (13,777) | $ (7,756) | $ (4,091) |
Net cash used in investing activities | $ (27,819) | $ (9,876) | $ (6,450) |
Excess tax benefits from stock-based compensation | | $ 829 | $ 119 |
Proceeds from long-term debt and other | $ 16,231 | $ 621 | $ 353 |
Repayments of long-term debt and other | $ (1,372) | $ (354) | $ (1,652) |
Principal repayments of capital lease obligations | $ (4,799) | $ (3,860) | $ (2,462) |
Principal repayments of finance lease obligations | $ (200) | $ (147) | $ (121) |
Net cash provided by (used in) financing activities | $ 9,860 | $ (2,911) | $ (3,763) |
Foreign currency effect on cash and cash equivalents | $ 713 | $ (212) | $ (374) |
Net increase (decrease) in cash and cash equivalents | $ 1,188 | $ 3,444 | $ 1,333 |
Cash and cash equivalents, beginning of period | $ 19,334 | $ 15,890 | $ 14,557 |
Cash and cash equivalents, end of period | $ 20,522 | $ 19,334 | $ 15,890 |