Backend updates

A whole bunch of stuff.