Added multiple file type functionality