Optimizations to IO.