Add miter for pattern detector