Added threading back to doc load