Create and Update rule helper functions