Add trace log to check performance of text update