Handle deep dependencies