@pjackson28 the use of case instead of if is appropriate in this case because all the event types of type string