Internal add() function works