Adding expandNode functionality; broken.