Recode input