Add features to dowload/upload document state.