Added buffer for output