Added SID hash to username to prevent impersonation. Minor tweaks.