Could the function directly return the message instead of assigning it to name?