       requests,
       sendPerformanceData,
       flush,
+      setOptions,
       history: HISTORY,
       active: ACTIVE,
       enableAjaxMonitoring: ->

  updateLatency = (time) ->
    currentLatency = time

    if SEND_LATENCY and not latencySent
      enqueue 'bucky.latency', time, 'timer'

      latencySent = true

    # points coming in.

    clearTimeout sendTimeout
    sendTimeout = setTimeout flush, options.aggregationInterval

    unless maxTimeout?
      maxTimeout = setTimeout flush, options.maxInterval

  sendQueue = ->
    if not ACTIVE
      console.log "Would send bucky queue"
      return

