Support for the insertelement operation.