End sensors are involved into algorithm.