Modify runIDQueries to use a DeferredList