Auth stuff almost complete.