Moved detailed individual QueryResult logic to onEnterState listener.