Added task querying based on process-variables + test