Finished ModifyDependency logic.