Add companion object to IO streams.