     @objectParams.Bucket ?= bucket
     @objectParams.Key    ?= objectName
 
-    @maxBufferSize = maxBufferSize # TODO
+    @maxBufferSize        = maxBufferSize # TODO
+    @partSize             = partSize or 5242880 # 5MB
+    @verbose             ?= false
+
+
 
     if not @objectParams.Bucket then throw new Error "Bucket must be given"
 


class Uploader extends EventEmitter
  #FIXME: 0 records?
  constructor: ({accessKey, secretKey, region, stream, objectName, objectParams, bucket, partSize, maxBufferSize}, @cb) ->
    super()
    aws.config.update
      accessKeyId:     accessKey
      secretAccessKey: secretKey

      if @parts.length is 0
        @finishJob()
      else
        process.stdout.write('W') if @verbose
        setTimeout (=> @pruneParts()), 500


