Segmentaion test, end of scipt, waited validation, and correction