Updated code to work with new versions of libraries.

Also added backspace support.