Added new -iobuf option and unit tests.