Adding better handling of unsupported file types