Corrected Shapless Recipe based on the original code