A method of producing a fermentation product from starch containing material, the method including converting starch containing material to fermentable sugars, wherein the starch containing material is corn; fermenting the fermentable sugars with a microorganism into fermented mash; subjecting fermentation medium, during the fermentation process to an enzyme composition comprising a xylanase and a pectinase; and separating fermentation product from the fermented mash.