Corrected transplant function.