Add pattern handling.