add CommandPattern