Some modifications to how commands are flattened into strings, added 'REGULAR_EXPRESSION' as an arg.