Added proper int file reading