Add multi query and custom result management.