Pass pattern to match on to entry method