 
             if result == null
                 text = text.substring 1
-                alert "Unrecognized"
+                # alert "Unrecognized"
             else
                 text = text.substring result[0].length
         return
 
     processMatch: (command, innerText) ->
-        alert "Inner Process: \n#{innerText}"
+        # alert "Inner Process: \n#{innerText}"
         if typeof innerText == "undefined" or innerText == null or innerText == ""
             return
         while innerText != ""
             for command of @commands
-                result = @commands[command]['regex'].exec innerText
+                result = @commands[command]['parser'].exec innerText
                 if result != null
                     @commands[command]['usesRemaining']--
-                    alert "Found: \n#{result[0]}"
+                    # alert "Found: \n#{result[0]}"
                     @processMatch command, result[1]
                     break
 

        @editor.setTheme "ace/theme/chrome"
        @editSession.setMode "ace/mode/java"

        @buildNeededRegex()
        @resetState()
        @editor.focus()


        text = @editor.getValue()
        currentLine = 0
        while text != ""
            # alert "Processing: \n#{text}"
            result = null
            for command of @commands
                result = @commands[command]['parser'].exec text
                if result != null
                    @commands[command]['usesRemaining']--
                    # alert "Found: \n#{result[0]}"
                    @processMatch command, result[1]
                    break

