Added support for CSV and Excel formatted documents