Added active/pending run queries