Store/sanitise the pattern in the payload. See issue #8.