Compatibility with new event system.