Fix and optimize discipline frecuency