made some minor changes.  I think I found the problem: __Insert needs to be updated in odd cases in the nextStep method.