A coffee machine comprising: a water reservoir arranged to provide water for brewing coffee, a container arranged to receive the water and to hold a coffee substance, a pump arranged to pump the water from said water reservoir to said container , and a measuring means arranged to measure an amount of water to be brewed in said water reservoir , wherein said coffee machine is arranged to measure an actual flow speed of water from said water reservoir to said container , and wherein said coffee machine comprises a control unit arranged to control said pump to generate a desired flow speed of water based on: - said amount of water to be brewed, - a predetermined period of time, and - said actual flow speed, whereby said amount of water is provided to said container during said predetermined period of time, characterized by said predetermined period of time comprises a first sub-period of time and a second sub-period of time, being subsequent to the first sub-period of time, wherein said control unit is arranged to control said pump to generate a first desired flow speed of water during said first sub-period of time and a second desired flow speed of water during said second sub-period of time, wherein said first desired flow speed is greater than said second desired flow speed. a water reservoir arranged to provide water for brewing coffee, a container arranged to receive the water and to hold a coffee substance, a pump arranged to pump the water from said water reservoir to said container , and a measuring means arranged to measure an amount of water to be brewed in said water reservoir , wherein said coffee machine is arranged to measure an actual flow speed of water from said water reservoir to said container , and wherein said coffee machine comprises a control unit arranged to control said pump to generate a desired flow speed of water based on: - said amount of water to be brewed, - a predetermined period of time, and - said actual flow speed, whereby said amount of water is provided to said container during said predetermined period of time, characterized by said predetermined period of time comprises a first sub-period of time and a second sub-period of time, being subsequent to the first sub-period of time, wherein said control unit is arranged to control said pump to generate a first desired flow speed of water during said first sub-period of time and a second desired flow speed of water during said second sub-period of time, wherein said first desired flow speed is greater than said second desired flow speed. - said amount of water to be brewed, - a predetermined period of time, and - said actual flow speed, whereby said amount of water is provided to said container during said predetermined period of time, characterized by said predetermined period of time comprises a first sub-period of time and a second sub-period of time, being subsequent to the first sub-period of time, wherein said control unit is arranged to control said pump to generate a first desired flow speed of water during said first sub-period of time and a second desired flow speed of water during said second sub-period of time, wherein said first desired flow speed is greater than said second desired flow speed. <EOS>