Adding in EOF to the return codes