Updated the deprecated methods