Add logging when tagging.