Load all files algorithem