NOJIRA: minor refactoring of this script to make it easier to maintain
NOJIRA: minor refactoring of this script to make it easier to maintain

itsdavidbaxter/Tools,itsdavidbaxter/Tools,itsdavidbaxter/Tools,itsdavidbaxter/Tools,itsdavidbaxter/Tools,itsdavidbaxter/Tools,itsdavidbaxter/Tools,itsdavidbaxter/Tools