Add logging, allow pass name when new a msger.