Have a method for each filetype