Added support for visited/unvisited items