Misc scripts used with TMC