Added a check to make sure that the buffer has at least start bytes.