Added getUpdatedDoc