Add support for external events.

Something is off with DPOR.  Need to make tests for it.