Added CONTINUE logic