OK, decided to do everything using a much simpler, better method.  Taken up too much time on this, but close to being done.