Initial stuff for loading tmats. Doesn't do anything