Remove unused line
Added document type selection, while improving data loading performance