Let's add the event listener BEFORE asking for settings.