Define aoihandler