Added some warnings for EOF