Handle the depencies and their SPs