Implemented print buffer for commands.