Use ReplaceCode method