Added task persistence.
Fixed partition information not being persisted.
Fixed origins of results not being persisted.