Initial filetype check