Copy over logic from previous version of this cookbook.