Use check_paths_and_times in main function