Changed pct complete logic with nested children.
Homogenized some var names.