Made the tps command runnable from the console and some adjustments related to that