Corrected deprecated call