Moved implementation of Serializable into StageState