Removed previous file read functionality and added a better one.