Don't use deprecated function.