Update add() function for pluggins.