Added statement to handle non-existant files. (Partially coded)