Seems to work now. Inventor22 can test his own code.