Add bulk exchange rules and fix major bug.