Controlling the process of mixing