Adding missing initialization code.