The alternative to writing this twice is to create the files in main and pass the names to check_paths, is that ok @rmcgibbo ?