Inlined logon(), and added some more debug information.