Get rid of duplication functions.