Adding support for transaction events

Please ignore this pull request.