Changes the msg in new_message type to optional