     if typeof(hook) == 'string'
       @runSandboxedHookFromString hook, data, callback
 
-  configureTransaction: (transaction, callback) =>
+  configureTransaction: (transaction) =>
     configuration = @configuration
 
     {origin, request, response} = transaction

    transactions = if @configuration.options['sorted'] then sortTransactions(transactions) else transactions

    logger.verbose('Configuring HTTP transactions')
    async.mapSeries transactions, @configureTransaction.bind(@), (err, results) =>
      transactions = results

      # Remainings of functional approach, probs to be eradicated
      logger.verbose('Reading hook files and registering hooks')
      addHooks @, transactions, (addHooksError) =>
        return callback addHooksError if addHooksError

        logger.verbose('Executing HTTP transactions')
        @executeAllTransactions(transactions, @hooks, callback)

  executeAllTransactions: (transactions, hooks, callback) ->
    # Warning: Following lines is "differently" performed by 'addHooks'

      protocol: @parsedUrl.protocol
      skip: skip

    return configuredTransaction

  parseServerUrl: (serverUrl) ->
    unless serverUrl.match(/^https?:\/\//i)
