How could you modify the Lua code to also capture and display timestamps for each in-game communication message in the output window?