Run function when iterating through Paths instead of running after creating Collection of paths.
Run function when iterating through Paths instead of running after creating Collection of paths.