Tries to fix auth token and various other fixes.