Added logging out