Rewrote update_log () for a comeback of the message repition compression feature; this time less buggy.