Use a pointer for message functions when it needs a resize.