Changed template variables from dummy to codim.