Added treatment mux for chosing algorithm