Added .ths format, fixed animation bug.