Add boolean field visited.