Add keep-alive and other stuff.