Adds functions to set parentid to setuptask.