Added add rule and remove rule