Added message initialization code