Make pattern parameterized