New tab manager algorithm.