Added methods to change the max message size.