Added ability to define a sequence of queries instead of a workflow.
Merged sequence changes, with some modifications