Incorporate backend refactor into gui.