Use partial for defer.