Implemented the check using filenames on the commandline