Created a listener to hold data like priority and executor