Some changes to the `tsa` scripts