Pass callback function to save()