Update the parent requirement when adding a child to it.

Signed-off-by: Arica Liu <aricaliu@wpi.edu>