Added tab switching.