Fixing a Thor deprecation.