Add safety guard.