Pulling file read out to seperate function for history file.
Cleanup.