Removed use of deprecated SDK method