Scan flow logic finished.