Fixed a funny with tr - changed SEPS and REPS - something to do with ^