Better stats.
Really pass the useGradient boolean...
Limit the number of nodes kept.
Fix an off-by-one sublisting.