Example code in agilty listener