Change master, slave to parent, dependent.
Adapt script to previous change.