Unify handling of the task.read()