Initial implementation of the <pattern> specification