Added logging off and inbox