Added sketch to output the saved TS, fixed TS storage