Add rudimentary support for formatted I/O.