Current example uses deprecated method So I updated the right one.