Fixed doctor bulk load function