Better initialization code.