Add callback to onAdd method