Added logout support.