Use non-deprecated function.