Change message to packet