First initialization code