Altered _forAllTabsDo to be more correct and useful.