Add logic to avoid unwanted requests to the listeners.