Changed reading from file to storing the content of the file as a string.