Extracted reading of file to separate class.