Added event compile-time checks