Event system added, and working mods.