Added platform initialization code