Replaced original Kerberos code.