Refactor PatternMachine to use private variables