Add slim filetype detection