Added FileErrorAlert.
Refactor.