Added code to read file differently.