Refactor Machine.ExecuteText, first parsing, then executes