To figure out if we're going outside the buffer, use the size of the buffer,