Adds NewMessage function for message instanciation