Updating the callback for 'add' so that arguments is passed as an array