Added code for reading from file