Fixed readFromFile