Added a modified hats file for most template instantiations.