Refactor Paraview tool to work with folders