More elegant solution for importing files

Done! Great idea, thanks a lot for the suggestion.