FILETYPE does not always give the desired outcome.