Extend on patterns