Added exception handling for case where the given file doesn't exists.