Add and remove dependencies