Adding file check