Preliminary template extraction.