A bit more tweaking.  I'm pretty satisfied now.  Actually works better when
debug mode is off - you're not 'trying' to follow the shape.