Added option to specify the initial tab.