Updating messages structure