Moved $tokensTable outside the function.

So it isn't created every time the function is called.