Implemented setParentID callback method.