Added activities query work flow.