For resubmit (review with Prof. Watson)
Handle EOFError