Finished the flag read function