Move the initialization location of message object