Fixes to recipe code creation