Finalize classes, fix unused warning on transfer.