Minor refactor while failing to grok serial readline