Added a couple of Messages utils that should have been here.