+ Added histeresis threshold