Replaced continue; with else