         # Called when there is a new batch of results to display
         next_results_callback: (result, rows) =>
 
-            @current_results = rows
+            @ATN_current_results = rows
 
             @toggle_executing false
             @state.query = @query
-            @state.results = @current_results
-            @state.metadata =
-                limit_value: @current_results.length
+            @state.ATN_results = @ATN_current_results
+            @state.ATN_metadata =
+                limit_value: @ATN_current_results.length
                 skip_value: result.start_index - rows.length
                 execution_time: new Date() - @start_time
                 query: @query
                 has_more_data: not result.ended
 
             @results_view.render_result
-                results: @current_results
-                metadata: @state.metadata
-                profile: @profile
+                results: @ATN_current_results
+                metadata: @state.ATN_metadata
+                profile: @ATN_profile
 
         # Evaluate the query
         # We cannot force eval to a local scope, but "use strict" will declare variables in the scope at least

        # Function triggered when the user click on 'more results'
        show_more_results: (event) =>
            event.preventDefault()
            @current_results = []
            @start_time = new Date()
            @state.query_result.shift @limit, @next_results_callback


                    result.shift @limit, @next_results_callback
                else
                    @toggle_executing false
                    @ATN_current_results = result.value

                    @state.query = @query
                    @state.ATN_results = @ATN_current_results
                    @state.ATN_metadata =
                        limit_value: if Object::toString.call(@results) is '[object Array]' then @ATN_current_results.length else 1
                        skip_value: 0
                        execution_time: new Date() - @start_time
                        query: @query
                        has_more_data: false

                    @results_view.render_result
                        results: @ATN_current_results
                        metadata: @state.ATN_metadata
                        profile: @ATN_profile

                    # Successful query, let's save it in the history
                    @save_query
