Added nodes argument to callback