Finally figured out how to update the class with the status and ouput of tasks without causing a cross-thread exception.