Further improvements to authentication and other things.