Stage 2 of pipe recode.