Added method to return shortest path too.