Added the ability for patterns to sequence arbitrary functions