Adding callback checks into dequeuing