Replace pin number with constant.