Adding convenience functions for generating rules