Added logout() function.