Events and States are no longer dicts but objects.