Improved dependency assertion