Add file check.