Added IO to main