Rewrote expandNode to read size property.