Added ability to define a sequence of queries instead of a workflow.