Made tab replacement work better - finally.