Authentication and various other stuff.