Create rule updating script and fix rule order update script.