Moved all display code to the processRule function for consistency.