Needs debugging for paths.