Add option to do not add duplicate rules