Changed the way message states are changed to read