Corrected function registration call.