Event system and module system