Introduced convenient method to create parameterized event objects.