Smarter space check for buffer.