Saving object and task state