Copied patterns over from the wiki.