First pass at visited(). NOT TESTED, TESTING TO FOLLOW.