Removed unneeded code in the Ploy Gen tool