     options.control = true
     @variant(name, options, callback)
 
-  continue: =>
+  continue: ->
     # Use the same variant as before, don't record anything
     if variant = @getPreviousVariant()
       @useVariant(variant)
     this
 
-  start: (name, options = {}) =>
+  start: (name, options = {}) ->
     if variant = @getPreviousVariant()
       # Use the same variant as before, don't record anything
       @useVariant(variant)

    @useVariant(variant)
    this

  complete: (name) =>
    # Optionally pass a name, or read from the cookie
    name or= @getVariantCookie()
    return this unless name

    # Set the variant we chose as a cookie
    @setVariantCookie(variant.name)

  recordComplete: (name) ->
    # Record the experiment was completed on the server
    request("#{@endpoint}/complete", experiment: @name, variant: name)

  # Variant Cookie

  getPreviousVariant: ->
    if name = @getVariantCookie()
      @getVariantForName(name)

  getVariantCookie: ->
    @getCookie("abbaVariant_#{@name}")

  setVariantCookie: (value) ->
    @setCookie("abbaVariant_#{@name}", value, expires: @options.expires)

  removeVariantCookie: ->
    @setCookie("abbaVariant_#{@name}", '', expires: true)

  # Complete Cookie

  setPersistCompleteCookie: ->
    @setCookie("abbaPersistComplete_#{@name}", '1', expires: @options.expires)

  hasPersistCompleteCookie: ->
    !!@getCookie("abbaPersistComplete_#{@name}")

  removePersistCompleteCookie: ->
    @setCookie("abbaPersistComplete_#{@name}", '', expires: true)

  setCookie: (name, value, options = {}) ->
