Not sure you need to zero it -- would it still be correct (and faster) if you omitted the = {0} and then also removed the if statement below at line 831?