Make event listeners indexed.