Added file check