Added TS file, and tweaks to scripts.