Added initial backspace logic (Bugs abound, needs to be cleaned up)