Added a logic for ingredients process