Corrected function type