Implement basic tab handling.