Changed survived to logical value and more analysis