Removed printing when it is the end of the file