Renamed bufferLength to successCount