Added logging out after specific time