Implemented basic I/O features.