Fixing duplicate functions.