Redid serial initialization code.