Added new backspace logic