More utilities to check the file types we're given, and only generate the ones we need.