Final safety check inside loop