Used continue instead of break