Need to add code for reading the file selected.