A method for roasting coffee beans comprising the steps of a) heating the coffee beans until the temperature of the coffee beans is at least 180°C; b) injecting a stream of oxygen-containing gas into the flow of hot air after the burner; and c) maintaining the injection of the stream of oxygen-containing gas until the end of the roasting process to mitigate the concentration of carbon monoxide in the roasting chamber, and wherein the coffee beans are roasted in a rotating fluidized bed roaster.