Keep track of nodes expanded