Adding main function in SASIAE implementation; Further but still not perfect stop handling in SASIAE implementation