Corrected use of TaskClient API.