Add QueryHandler for coming query function.