Added both the event and data objects as passed objects.