Optimization: Set the shape on the composite shape node rather than removing, recreating, and adding it.