Modified server to allow for multiple messages to be sent at once