Add directory iterator to iterate the files and load automatically