Make it work with sysend login/logout