Pass the right object to callback function