I completely fixed this by doing this in the DivideBlock() function:
there is pretty much zero delay and the flashing disappears completely.