Added rule repositioning