Programmatically add dependencies.