Added readFile method