Define safetail using guard equation.