Renamed UpdateMessage function to updateMessage