Updating deprecated method calls