Erasing deprecated method