Better implementation for runtime intermediate output paths.