Added foreign events. Untested for now.
Added a test of foreign events. I see they do not work yet...
Fixed foreign events.