Added lookup query callback.