Eliminated a deprecation warning