Updated survivalone function.