Initial template expansion.