Sorry I need to change the following line
from:
FOR next_loop = 1 TO diff
to
FOR next_loop = 0 TO diff
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.