Corrected function prototype