Add pattern persistence