Improved algorithm for extra deps
Added extra deps