Added a function to read output from other tasks.