by rlmumford: Add nice rules functionality.