Add andM and orM utility functions.