Trying all the paths.