Rearange rules.