Removed usage of deprecated method