Fixed a collision in buffer commands.
Added IO to the C++ side.