Add support for event ports and periodic tasks.