Don't use a deprecated function.