Trying to fix deprecation warning.