Improved events system.