     console.log "Rendering #{app}/#{view.contentId}/#{view.viewId}."
     st = new Date().getTime()
     new promise (resolve, reject) =>
+      @_stats.apiCalls?.hideRenderShow?[app]?.active += 1
       @_api.scheduler.hideRenderShow @_currentApp, view.viewId, app
         .then =>
+          @_stats.apiCalls?.hideRenderShow?[app]?.active -= 1
           @_stats.apiCalls?.hideRenderShow?[app]?.success += 1
           et = new Date().getTime()
           console.log """#{app}/#{view.contentId}/#{view.viewId} rendered \

        success: 0
        failure: 0
        timeout: 0
      @_stats.apiCalls.hideRenderShow[app] =
        success: 0
        failure: 0
      @_stats.appViews[app] =
        success: 0
        failure: 0

  _prepare: (app) ->
    new promise (resolve, reject) =>
      @_activePrepareCalls[app] = @_activePrepareCalls[app] + 1
      @_stats.apiCalls?.prepare?[app]?.active += 1

      expire = =>
        @_stats.apiCalls?.prepare?[app]?.failure += 1
        @_stats.apiCalls?.prepare?[app]?.timeout += 1
        @_stats.apiCalls?.prepare?[app]?.active -= 1
        @_activePrepareCalls[app] = @_activePrepareCalls[app] - 1
        console.error "prepare() call timed out for app #{app}."
        reject new Error("prepare() call timed out.")
