Code that Greg said didn't work but really did