UP: Made get_paths call get_paths_iter