Added check via feof