Lots of new request handling code.