Added functionality for initial reading of file.