Read loop now in its own method.