Initialize ongoing_flag and delete ongoing_flag conditional statement.