Fixed all IO statements