When building index, also call the doctor's discover function