Net cash (used in) provided by investing activities (4,960) 22,924 (9,337) Cash flows from financing activities: Repayments on revolving lines of credit (89,231 ) (25,600 ) (70,770 ) Borrowings on revolving lines of credit 86,546 28,285 65,770 Principal payments on term loans (10,900 ) (12,127 ) (10,743 ) Treasury stock purchases (25,576) (2,215) (3,064) Payment on termination of sugarcane agreement (11,300 ) — — Dividends paid (1,833) (1,972) (1,987) Capital contribution received from noncontrolling interest — 1,000 — Capital lease obligation payments — (8) (580) Net cash used in financing activities (52,294 ) (12,637 ) (21,374 ) Net (decrease) increase in cash and cash equivalents and restricted cash (8,422 ) 28,865 (3,230 ) Cash and cash equivalents and restricted cash at beginning of the period 32,260 3,395 6,625 Cash and cash equivalents and restricted cash at end of the period $ 23,838 $ 32,260 $ 3,395 Supplemental disclosure of cash flow information: Cash paid for interest; net of amount capitalized $ 6,940 $ 6,721 $ 7,240 Cash paid (refunded) for income taxes $ 6,285 $ 25 $ (911) Supplemental disclosure of non-cash investing and financing activities: Dividend declared but unpaid $ 449 $ 492 $ 494 See accompanying notes to the consolidated financial statements. 50