Added serialization for startTime and numberOfAttempts for TaskContainer