Production of flour and confectionery products