Really fixed it reading from the IO object