Modifying to read from file