Corrected function already defined