Add rule and update.