- Corrected deprecated method