Argha : added explicit reset of queries to clear memory