Add getPaths, get first num paths.