Testing for Tools and modifications to time string generation
Replaced switch statement by given statement in Tools.pm