Base template script and TextUtils3 utility script.