Added Logout() method.