Listen for the correct event