Added recipe controller logic