Moved location of read_loop() for clarity