Changed newPath to use RelativePath instead of String.
Added newPath with multiple relative paths as parameter.