Added readFile Function