Tested and documented io.go.