Control algorythms