Updated to use the `actions` hash instead of `events`