Made changes so that multiple instances of the tool can be executed at the same time