Added method to read file