Pin initialization code.