Add set children function