Corrected function arguments