Make the tab limitation smarter.
I'm afraid we have to use..math.