Smaller improvements to backend architecture and implementation