Added flag checks to SO_01 thorugh SO_07