Replaced incorrect usage of 'break' with 'continue'