         if @_patched_already
             return
         iterableProto = @query_result.cursor?.__proto__?.__proto__?.constructor?.prototype
-        if iterableProto?.stackSize > 30
+        if iterableProto?.stackSize > 20
             console.log "Patching stack limit on cursors to 30"
-            iterableProto.stackSize = 30
+            iterableProto.stackSize = 20
             @_patched_already = true
 
 

        @executing = false

        # Load options from local storage
        if window.localStorage?.options?
            try
                dataexplorer_state.options = JSON.parse window.localStorage.options
            catch err
                window.localStorage.removeItem 'options'

        # Load the query that was written in code mirror (that may not have been executed before)
        if typeof window.localStorage?.current_query is 'string'


r = require('rethinkdb')

DEFAULTS =
    current_query: null
    query_result: null
    cursor_timed_out: true
