Corrected parameter passing