Pass a callback function to save()