Preview: use Queue for processing in the thread
Tests: EOL detection