Changed the way response messages are sent from the server