Utils for log add functions.