Modified to variable lenght break