Refactored "io" package.