Allow PatternMachine to take a list for w