Befor reading from file.