Add tag operation function.