Working incorrectly attempt of tsp.