Added some authentication stuff.